MediaWiki  1.34.0
PreAuthenticationProvider.php
Go to the documentation of this file.
1 <?php
24 namespace MediaWiki\Auth;
25 
26 use StatusValue;
27 use User;
28 
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 }
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: StatusValue.php:42
$response
$response
Definition: opensearch_desc.php:38
MediaWiki\Auth\PreAuthenticationProvider\testForAuthentication
testForAuthentication(array $reqs)
Determine whether an authentication may begin.
MediaWiki\Auth\PreAuthenticationProvider\postAccountCreation
postAccountCreation( $user, $creator, AuthenticationResponse $response)
Post-creation callback.
MediaWiki\Auth\PreAuthenticationProvider\testForAccountCreation
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
MediaWiki\Auth\PreAuthenticationProvider\testForAccountLink
testForAccountLink( $user)
Determine whether an account may linked to another authentication method.
MediaWiki\Auth\PreAuthenticationProvider\postAuthentication
postAuthentication( $user, AuthenticationResponse $response)
Post-login callback.
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\PreAuthenticationProvider\postAccountLink
postAccountLink( $user, AuthenticationResponse $response)
Post-link callback.
MediaWiki\Auth\PreAuthenticationProvider\testUserForCreation
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:51
MediaWiki\Auth
Definition: AbstractAuthenticationProvider.php:22
MediaWiki\Auth\AuthenticationProvider
An AuthenticationProvider is used by AuthManager when authenticating users.
Definition: AuthenticationProvider.php:39