MediaWiki master
SecondaryAuthenticationProvider.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Auth;
8
10use StatusValue;
11
35
53 public function beginSecondaryAuthentication( $user, array $reqs );
54
67 public function continueSecondaryAuthentication( $user, array $reqs );
68
80 public function postAuthentication( $user, AuthenticationResponse $response );
81
93 public function providerRevokeAccessForUser( $username );
94
101 public function providerAllowsPropertyChange( $property );
102
117 AuthenticationRequest $req, $checkData = true
118 );
119
134
147 public function testForAccountCreation( $user, $creator, array $reqs );
148
167 public function beginSecondaryAccountCreation( $user, $creator, array $reqs );
168
182 public function continueSecondaryAccountCreation( $user, $creator, array $reqs );
183
197 public function postAccountCreation( $user, $creator, AuthenticationResponse $response );
198
220 public function testUserForCreation( $user, $autocreate, array $options = [] );
221
230 public function autoCreatedAccount( $user, $source );
231
232}
This is a value object for authentication requests.
This is a value object to hold authentication response data.
User class for the MediaWiki software.
Definition User.php:110
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Authentication providers are used by AuthManager when authenticating users.
Secondary providers act after input data is already associated with a MediaWiki account.
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