MediaWiki
master
PreAuthenticationProvider.php
Go to the documentation of this file.
1
<?php
24
namespace
MediaWiki\Auth
;
25
26
use
MediaWiki\User\User
;
27
use
StatusValue
;
28
44
interface
PreAuthenticationProvider
extends
AuthenticationProvider
{
45
54
public
function
testForAuthentication
( array $reqs );
55
70
public
function
postAuthentication
( $user,
AuthenticationResponse
$response );
71
86
public
function
testForAccountCreation
( $user, $creator, array $reqs );
87
108
public
function
testUserForCreation
( $user, $autocreate, array $options = [] );
109
125
public
function
postAccountCreation
( $user, $creator,
AuthenticationResponse
$response );
126
135
public
function
testForAccountLink
( $user );
136
148
public
function
postAccountLink
( $user,
AuthenticationResponse
$response );
149
150
}
MediaWiki\Auth\AuthenticationResponse
This is a value object to hold authentication response data.
Definition
AuthenticationResponse.php:38
MediaWiki\User\User
User class for the MediaWiki software.
Definition
User.php:120
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
StatusValue.php:52
MediaWiki\Auth\AuthenticationProvider
An AuthenticationProvider is used by AuthManager when authenticating users.
Definition
AuthenticationProvider.php:36
MediaWiki\Auth\PreAuthenticationProvider
A pre-authentication provider can prevent authentication early on.
Definition
PreAuthenticationProvider.php:44
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:22
includes
auth
PreAuthenticationProvider.php
Generated on Thu Mar 27 2025 16:23:16 for MediaWiki by
1.10.0