MediaWiki REL1_34
SecondaryAuthenticationProvider.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Auth;
25
26use StatusValue;
27use User;
28
53
71 public function beginSecondaryAuthentication( $user, array $reqs );
72
85 public function continueSecondaryAuthentication( $user, array $reqs );
86
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}
This is a value object for authentication requests.
This is a value object to hold authentication response data.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:51
An AuthenticationProvider is used by AuthManager when authenticating users.
A secondary provider mostly acts when the submitted authentication data has already been associated t...
providerAllowsPropertyChange( $property)
Determine whether a property can change.
beginSecondaryAuthentication( $user, array $reqs)
Start an authentication flow.
postAuthentication( $user, AuthenticationResponse $response)
Post-login callback.
providerAllowsAuthenticationDataChange(AuthenticationRequest $req, $checkData=true)
Validate a change of authentication data (e.g.
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.
providerRevokeAccessForUser( $username)
Revoke the user's credentials.
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
postAccountCreation( $user, $creator, AuthenticationResponse $response)
Post-creation callback.
autoCreatedAccount( $user, $source)
Post-auto-creation callback.
continueSecondaryAuthentication( $user, array $reqs)
Continue an authentication flow.
beginSecondaryAccountCreation( $user, $creator, array $reqs)
Start an account creation flow.
providerChangeAuthenticationData(AuthenticationRequest $req)
Change or remove authentication data (e.g.
continueSecondaryAccountCreation( $user, $creator, array $reqs)
Continue an authentication flow.
$source