MediaWiki
REL1_39
AbstractPreAuthenticationProvider.php
Go to the documentation of this file.
1
<?php
22
namespace
MediaWiki\Auth
;
23
31
abstract
class
AbstractPreAuthenticationProvider
extends
AbstractAuthenticationProvider
32
implements
PreAuthenticationProvider
33
{
34
39
public
function
getAuthenticationRequests
( $action, array $options ) {
40
return
[];
41
}
42
47
public
function
testForAuthentication
( array $reqs ) {
48
return \StatusValue::newGood();
49
}
50
55
public
function
postAuthentication
( $user,
AuthenticationResponse
$response ) {
56
}
57
62
public
function
testForAccountCreation
( $user, $creator, array $reqs ) {
63
return \StatusValue::newGood();
64
}
65
70
public
function
testUserForCreation
( $user, $autocreate, array $options = [] ) {
71
return \StatusValue::newGood();
72
}
73
78
public
function
postAccountCreation
( $user, $creator,
AuthenticationResponse
$response ) {
79
}
80
85
public
function
testForAccountLink
( $user ) {
86
return \StatusValue::newGood();
87
}
88
93
public
function
postAccountLink
( $user,
AuthenticationResponse
$response ) {
94
}
95
96
}
MediaWiki\Auth\AbstractAuthenticationProvider
A base class that implements some of the boilerplate for an AuthenticationProvider.
Definition
AbstractAuthenticationProvider.php:36
MediaWiki\Auth\AbstractPreAuthenticationProvider
A base class that implements some of the boilerplate for a PreAuthenticationProvider.
Definition
AbstractPreAuthenticationProvider.php:33
MediaWiki\Auth\AbstractPreAuthenticationProvider\testUserForCreation
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.StatusValue
Definition
AbstractPreAuthenticationProvider.php:70
MediaWiki\Auth\AbstractPreAuthenticationProvider\postAuthentication
postAuthentication( $user, AuthenticationResponse $response)
Post-login callback.This will be called at the end of a login attempt. It will not be called for unfi...
Definition
AbstractPreAuthenticationProvider.php:55
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAccountLink
testForAccountLink( $user)
Determine whether an account may linked to another authentication method.StatusValue
Definition
AbstractPreAuthenticationProvider.php:85
MediaWiki\Auth\AbstractPreAuthenticationProvider\postAccountLink
postAccountLink( $user, AuthenticationResponse $response)
Post-link callback.This will be called at the end of an account linking attempt.
Definition
AbstractPreAuthenticationProvider.php:93
MediaWiki\Auth\AbstractPreAuthenticationProvider\getAuthenticationRequests
getAuthenticationRequests( $action, array $options)
Return the applicable list of AuthenticationRequests.Possible values for $action depend on whether th...
Definition
AbstractPreAuthenticationProvider.php:39
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAuthentication
testForAuthentication(array $reqs)
Determine whether an authentication may begin.Called from AuthManager::beginAuthentication()StatusVal...
Definition
AbstractPreAuthenticationProvider.php:47
MediaWiki\Auth\AbstractPreAuthenticationProvider\postAccountCreation
postAccountCreation( $user, $creator, AuthenticationResponse $response)
Post-creation callback.This will be called at the end of an account creation attempt....
Definition
AbstractPreAuthenticationProvider.php:78
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAccountCreation
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.Called from AuthManager::beginAccountCreation()No nee...
Definition
AbstractPreAuthenticationProvider.php:62
MediaWiki\Auth\AuthenticationResponse
This is a value object to hold authentication response data.
Definition
AuthenticationResponse.php:37
MediaWiki\Auth\PreAuthenticationProvider
A pre-authentication provider can prevent authentication early on.
Definition
PreAuthenticationProvider.php:44
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:22
includes
auth
AbstractPreAuthenticationProvider.php
Generated on Mon Nov 25 2024 06:55:08 for MediaWiki by
1.10.0