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