MediaWiki
REL1_34
AbstractPreAuthenticationProvider.php
Go to the documentation of this file.
1
<?php
22
namespace
MediaWiki\Auth
;
23
29
abstract
class
AbstractPreAuthenticationProvider
extends
AbstractAuthenticationProvider
30
implements
PreAuthenticationProvider
31
{
32
33
public
function
getAuthenticationRequests
( $action, array $options ) {
34
return
[];
35
}
36
37
public
function
testForAuthentication
( array $reqs ) {
38
return \StatusValue::newGood();
39
}
40
41
public
function
postAuthentication
( $user,
AuthenticationResponse
$response
) {
42
}
43
44
public
function
testForAccountCreation
( $user, $creator, array $reqs ) {
45
return \StatusValue::newGood();
46
}
47
48
public
function
testUserForCreation
( $user, $autocreate, array $options = [] ) {
49
return \StatusValue::newGood();
50
}
51
52
public
function
postAccountCreation
( $user, $creator,
AuthenticationResponse
$response
) {
53
}
54
55
public
function
testForAccountLink
( $user ) {
56
return \StatusValue::newGood();
57
}
58
59
public
function
postAccountLink
( $user,
AuthenticationResponse
$response
) {
60
}
61
62
}
MediaWiki\Auth\AbstractAuthenticationProvider
A base class that implements some of the boilerplate for an AuthenticationProvider.
Definition
AbstractAuthenticationProvider.php:32
MediaWiki\Auth\AbstractPreAuthenticationProvider
A base class that implements some of the boilerplate for a PreAuthenticationProvider.
Definition
AbstractPreAuthenticationProvider.php:31
MediaWiki\Auth\AbstractPreAuthenticationProvider\testUserForCreation
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.
Definition
AbstractPreAuthenticationProvider.php:48
MediaWiki\Auth\AbstractPreAuthenticationProvider\postAuthentication
postAuthentication( $user, AuthenticationResponse $response)
Post-login callback.
Definition
AbstractPreAuthenticationProvider.php:41
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAccountLink
testForAccountLink( $user)
Determine whether an account may linked to another authentication method.
Definition
AbstractPreAuthenticationProvider.php:55
MediaWiki\Auth\AbstractPreAuthenticationProvider\postAccountLink
postAccountLink( $user, AuthenticationResponse $response)
Post-link callback.
Definition
AbstractPreAuthenticationProvider.php:59
MediaWiki\Auth\AbstractPreAuthenticationProvider\getAuthenticationRequests
getAuthenticationRequests( $action, array $options)
Return the applicable list of AuthenticationRequests.
Definition
AbstractPreAuthenticationProvider.php:33
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAuthentication
testForAuthentication(array $reqs)
Determine whether an authentication may begin.
Definition
AbstractPreAuthenticationProvider.php:37
MediaWiki\Auth\AbstractPreAuthenticationProvider\postAccountCreation
postAccountCreation( $user, $creator, AuthenticationResponse $response)
Post-creation callback.
Definition
AbstractPreAuthenticationProvider.php:52
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAccountCreation
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
Definition
AbstractPreAuthenticationProvider.php:44
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
$response
$response
Definition
opensearch_desc.php:38
includes
auth
AbstractPreAuthenticationProvider.php
Generated on Mon Nov 25 2024 16:04:54 for MediaWiki by
1.10.0