MediaWiki REL1_32
|
AuthManager secondary authentication provider for TOTP second-factor authentication. More...
Public Member Functions | |
beginSecondaryAccountCreation ( $user, $creator, array $reqs) | |
beginSecondaryAuthentication ( $user, array $reqs) | |
If the user has enabled two-factor authentication, request a second factor. | |
continueSecondaryAuthentication ( $user, array $reqs) | |
Verify the second factor. | |
getAuthenticationRequests ( $action, array $options) | |
Public Member Functions inherited from MediaWiki\Auth\AbstractSecondaryAuthenticationProvider | |
autoCreatedAccount ( $user, $source) | |
Post-auto-creation callback. | |
continueSecondaryAccountCreation ( $user, $creator, array $reqs) | |
Continue an authentication flow. | |
postAccountCreation ( $user, $creator, AuthenticationResponse $response) | |
Post-creation callback. | |
postAuthentication ( $user, AuthenticationResponse $response) | |
Post-login callback. | |
providerAllowsAuthenticationDataChange (AuthenticationRequest $req, $checkData=true) | |
Validate a change of authentication data (e.g. | |
providerAllowsPropertyChange ( $property) | |
Determine whether a property can change. | |
providerChangeAuthenticationData (AuthenticationRequest $req) | |
Change or remove authentication data (e.g. | |
providerRevokeAccessForUser ( $username) | |
@inheritDoc | |
testForAccountCreation ( $user, $creator, array $reqs) | |
Determine whether an account creation may begin. | |
testUserForCreation ( $user, $autocreate, array $options=[]) | |
Determine whether an account may be created. | |
Public Member Functions inherited from MediaWiki\Auth\AbstractAuthenticationProvider | |
getUniqueId () | |
@inheritDoc | |
setConfig (Config $config) | |
Set configuration. | |
setLogger (LoggerInterface $logger) | |
setManager (AuthManager $manager) | |
Set AuthManager. | |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Auth\AbstractAuthenticationProvider | |
Config | $config |
LoggerInterface | $logger |
AuthManager | $manager |
AuthManager secondary authentication provider for TOTP second-factor authentication.
After a successful primary authentication, requests a time-based one-time password (typically generated by a mobile app such as Google Authenticator) from the user.
Definition at line 33 of file TOTPSecondaryAuthenticationProvider.php.
TOTPSecondaryAuthenticationProvider::beginSecondaryAccountCreation | ( | $user, | |
$creator, | |||
array | $reqs ) |
Implements MediaWiki\Auth\SecondaryAuthenticationProvider.
Definition at line 118 of file TOTPSecondaryAuthenticationProvider.php.
TOTPSecondaryAuthenticationProvider::beginSecondaryAuthentication | ( | $user, | |
array | $reqs ) |
If the user has enabled two-factor authentication, request a second factor.
User | $user | |
array | $reqs |
Implements MediaWiki\Auth\SecondaryAuthenticationProvider.
Definition at line 59 of file TOTPSecondaryAuthenticationProvider.php.
References OATHAuthHooks\getOATHUserRepository(), and wfMessage().
TOTPSecondaryAuthenticationProvider::continueSecondaryAuthentication | ( | $user, | |
array | $reqs ) |
Verify the second factor.
@inheritDoc
Reimplemented from MediaWiki\Auth\AbstractSecondaryAuthenticationProvider.
Definition at line 74 of file TOTPSecondaryAuthenticationProvider.php.
References $request, OATHAuthHooks\getOATHUserRepository(), and wfMessage().
TOTPSecondaryAuthenticationProvider::getAuthenticationRequests | ( | $action, | |
array | $options ) |
string | $action | |
array | $options |
Implements MediaWiki\Auth\AuthenticationProvider.
Definition at line 41 of file TOTPSecondaryAuthenticationProvider.php.