MediaWiki
REL1_34
PreAuthenticationProvider.php
Go to the documentation of this file.
1
<?php
24
namespace
MediaWiki\Auth
;
25
26
use
StatusValue
;
27
use
User
;
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
106
public
function
testUserForCreation
( $user, $autocreate, array $options = [] );
107
123
public
function
postAccountCreation
( $user, $creator,
AuthenticationResponse
$response
);
124
133
public
function
testForAccountLink
( $user );
134
146
public
function
postAccountLink
( $user,
AuthenticationResponse
$response
);
147
148
}
MediaWiki\Auth\AuthenticationResponse
This is a value object to hold authentication response data.
Definition
AuthenticationResponse.php:37
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
StatusValue.php:42
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:51
MediaWiki\Auth\AuthenticationProvider
An AuthenticationProvider is used by AuthManager when authenticating users.
Definition
AuthenticationProvider.php:39
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
$response
$response
Definition
opensearch_desc.php:38
includes
auth
PreAuthenticationProvider.php
Generated on Mon Nov 25 2024 16:04:55 for MediaWiki by
1.10.0