MediaWiki  master
SecondaryAuthenticationProvider.php
Go to the documentation of this file.
1 <?php
24 namespace MediaWiki\Auth;
25 
26 use StatusValue;
27 use User;
28 
53 
71  public function beginSecondaryAuthentication( $user, array $reqs );
72 
85  public function continueSecondaryAuthentication( $user, array $reqs );
86 
99  public function postAuthentication( $user, AuthenticationResponse $response );
100 
112  public function providerRevokeAccessForUser( $username );
113 
120  public function providerAllowsPropertyChange( $property );
121 
136  AuthenticationRequest $req, $checkData = true
137  );
138 
155 
170  public function testForAccountCreation( $user, $creator, array $reqs );
171 
192  public function beginSecondaryAccountCreation( $user, $creator, array $reqs );
193 
209  public function continueSecondaryAccountCreation( $user, $creator, array $reqs );
210 
226  public function postAccountCreation( $user, $creator, AuthenticationResponse $response );
227 
246  public function testUserForCreation( $user, $autocreate, array $options = [] );
247 
256  public function autoCreatedAccount( $user, $source );
257 
258 }
continueSecondaryAuthentication( $user, array $reqs)
Continue an authentication flow.
$response
continueSecondaryAccountCreation( $user, $creator, array $reqs)
Continue an authentication flow.
An AuthenticationProvider is used by AuthManager when authenticating users.
beginSecondaryAuthentication( $user, array $reqs)
Start an authentication flow.
$source
providerAllowsPropertyChange( $property)
Determine whether a property can change.
postAuthentication( $user, AuthenticationResponse $response)
Post-login callback.
This is a value object to hold authentication response data.
The User object encapsulates all of the user-specific settings (user_id, name, rights, email address, options, last login time).
Definition: User.php:51
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.
providerRevokeAccessForUser( $username)
Revoke the user&#39;s credentials.
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
autoCreatedAccount( $user, $source)
Post-auto-creation callback.
postAccountCreation( $user, $creator, AuthenticationResponse $response)
Post-creation callback.
providerChangeAuthenticationData(AuthenticationRequest $req)
Change or remove authentication data (e.g.
beginSecondaryAccountCreation( $user, $creator, array $reqs)
Start an account creation flow.
providerAllowsAuthenticationDataChange(AuthenticationRequest $req, $checkData=true)
Validate a change of authentication data (e.g.
This is a value object for authentication requests.
A secondary provider mostly acts when the submitted authentication data has already been associated t...