MediaWiki
master
AbstractPreAuthenticationProvider.php
Go to the documentation of this file.
1
<?php
7
namespace
MediaWiki\Auth
;
8
16
abstract
class
AbstractPreAuthenticationProvider
extends
AbstractAuthenticationProvider
17
implements
PreAuthenticationProvider
18
{
19
24
public
function
getAuthenticationRequests
( $action, array $options ) {
25
return
[];
26
}
27
32
public
function
testForAuthentication
( array $reqs ) {
33
return \StatusValue::newGood();
34
}
35
40
public
function
postAuthentication
( $user,
AuthenticationResponse
$response ) {
41
}
42
47
public
function
testForAccountCreation
( $user, $creator, array $reqs ) {
48
return \StatusValue::newGood();
49
}
50
55
public
function
testUserForCreation
( $user, $autocreate, array $options = [] ) {
56
return \StatusValue::newGood();
57
}
58
63
public
function
postAccountCreation
( $user, $creator,
AuthenticationResponse
$response ) {
64
}
65
70
public
function
testForAccountLink
( $user ) {
71
return \StatusValue::newGood();
72
}
73
78
public
function
postAccountLink
( $user,
AuthenticationResponse
$response ) {
79
}
80
81
}
MediaWiki\Auth\AbstractAuthenticationProvider
A base class that implements some of the boilerplate for an AuthenticationProvider.
Definition
AbstractAuthenticationProvider.php:22
MediaWiki\Auth\AbstractPreAuthenticationProvider
A base class that implements some of the boilerplate for a PreAuthenticationProvider.
Definition
AbstractPreAuthenticationProvider.php:18
MediaWiki\Auth\AbstractPreAuthenticationProvider\testUserForCreation
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.StatusValue
Definition
AbstractPreAuthenticationProvider.php:55
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:40
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAccountLink
testForAccountLink( $user)
Determine whether an account may linked to another authentication method.StatusValue
Definition
AbstractPreAuthenticationProvider.php:70
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:78
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:24
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAuthentication
testForAuthentication(array $reqs)
Determine whether an authentication may begin.Called from AuthManager::beginAuthentication()StatusVal...
Definition
AbstractPreAuthenticationProvider.php:32
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:63
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:47
MediaWiki\Auth\AuthenticationResponse
This is a value object to hold authentication response data.
Definition
AuthenticationResponse.php:21
MediaWiki\Auth\PreAuthenticationProvider
Pre-authentication providers can prevent authentication early on.
Definition
PreAuthenticationProvider.php:27
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:7
includes
Auth
AbstractPreAuthenticationProvider.php
Generated on Fri Jan 16 2026 23:24:32 for MediaWiki by
1.10.0