MediaWiki
master
PreAuthenticationProvider.php
Go to the documentation of this file.
1
<?php
7
namespace
MediaWiki\Auth
;
8
9
use
MediaWiki\User\User
;
10
use
StatusValue
;
11
27
interface
PreAuthenticationProvider
extends
AuthenticationProvider
{
28
37
public
function
testForAuthentication
( array $reqs );
38
52
public
function
postAuthentication
( $user,
AuthenticationResponse
$response );
53
66
public
function
testForAccountCreation
( $user, $creator, array $reqs );
67
89
public
function
testUserForCreation
( $user, $autocreate, array $options = [] );
90
104
public
function
postAccountCreation
( $user, $creator,
AuthenticationResponse
$response );
105
113
public
function
testForAccountLink
( $user );
114
125
public
function
postAccountLink
( $user,
AuthenticationResponse
$response );
126
127
}
MediaWiki\Auth\AuthenticationResponse
This is a value object to hold authentication response data.
Definition
AuthenticationResponse.php:21
MediaWiki\User\User
User class for the MediaWiki software.
Definition
User.php:110
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
StatusValue.php:41
MediaWiki\Auth\AuthenticationProvider
Authentication providers are used by AuthManager when authenticating users.
Definition
AuthenticationProvider.php:19
MediaWiki\Auth\PreAuthenticationProvider
Pre-authentication providers can prevent authentication early on.
Definition
PreAuthenticationProvider.php:27
MediaWiki\Auth\PreAuthenticationProvider\testUserForCreation
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.
MediaWiki\Auth\PreAuthenticationProvider\testForAccountCreation
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
MediaWiki\Auth\PreAuthenticationProvider\testForAuthentication
testForAuthentication(array $reqs)
Determine whether an authentication may begin.
MediaWiki\Auth\PreAuthenticationProvider\testForAccountLink
testForAccountLink( $user)
Determine whether an account may linked to another authentication method.
MediaWiki\Auth\PreAuthenticationProvider\postAccountCreation
postAccountCreation( $user, $creator, AuthenticationResponse $response)
Post-creation callback.
MediaWiki\Auth\PreAuthenticationProvider\postAccountLink
postAccountLink( $user, AuthenticationResponse $response)
Post-link callback.
MediaWiki\Auth\PreAuthenticationProvider\postAuthentication
postAuthentication( $user, AuthenticationResponse $response)
Post-login callback.
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:7
includes
Auth
PreAuthenticationProvider.php
Generated on Thu Dec 11 2025 23:24:15 for MediaWiki by
1.10.0