MediaWiki REL1_33
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
113
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:48
this hook is for auditing only $req
Definition hooks.txt:979
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
Definition hooks.txt:1999
this hook is for auditing only or null if authentication failed before getting that far $username
Definition hooks.txt:782
this hook is for auditing only $response
Definition hooks.txt:780
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.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
$source
$property