MediaWiki  1.34.0
AbstractPreAuthenticationProvider.php
Go to the documentation of this file.
1 <?php
22 namespace MediaWiki\Auth;
23 
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 
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\AbstractPreAuthenticationProvider\postAccountCreation
postAccountCreation( $user, $creator, AuthenticationResponse $response)
Post-creation callback.
Definition: AbstractPreAuthenticationProvider.php:52
$response
$response
Definition: opensearch_desc.php:38
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\PreAuthenticationProvider
A pre-authentication provider can prevent authentication early on.
Definition: PreAuthenticationProvider.php:44
MediaWiki\Auth\AuthenticationResponse
This is a value object to hold authentication response data.
Definition: AuthenticationResponse.php:37
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAuthentication
testForAuthentication(array $reqs)
Determine whether an authentication may begin.
Definition: AbstractPreAuthenticationProvider.php:37
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAccountCreation
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
Definition: AbstractPreAuthenticationProvider.php:44
MediaWiki\Auth\AbstractPreAuthenticationProvider\postAuthentication
postAuthentication( $user, AuthenticationResponse $response)
Post-login callback.
Definition: AbstractPreAuthenticationProvider.php:41
MediaWiki\$action
string $action
Cache what action this request is.
Definition: MediaWiki.php:48
MediaWiki\Auth\AbstractPreAuthenticationProvider
A base class that implements some of the boilerplate for a PreAuthenticationProvider.
Definition: AbstractPreAuthenticationProvider.php:29
MediaWiki\Auth\AbstractAuthenticationProvider
A base class that implements some of the boilerplate for an AuthenticationProvider.
Definition: AbstractAuthenticationProvider.php:32
MediaWiki\Auth\AbstractPreAuthenticationProvider\testForAccountLink
testForAccountLink( $user)
Determine whether an account may linked to another authentication method.
Definition: AbstractPreAuthenticationProvider.php:55
MediaWiki\Auth\AbstractPreAuthenticationProvider\testUserForCreation
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.
Definition: AbstractPreAuthenticationProvider.php:48
MediaWiki\Auth
Definition: AbstractAuthenticationProvider.php:22