MediaWiki
1.28.0
|
Links third-party authentication to the user's account. More...
Public Member Functions | ||||
beginSecondaryAccountCreation ($user, $creator, array $reqs) | ||||
Start an account creation flow. More... | ||||
beginSecondaryAuthentication ($user, array $reqs) | ||||
Start an authentication flow. More... | ||||
continueSecondaryAccountCreation ($user, $creator, array $reqs) | ||||
Continue an authentication flow. More... | ||||
continueSecondaryAuthentication ($user, array $reqs) | ||||
Continue an authentication flow. More... | ||||
getAuthenticationRequests ($action, array $options) | ||||
Return the applicable list of AuthenticationRequests. More... | ||||
Public Member Functions inherited from MediaWiki\Auth\AbstractSecondaryAuthenticationProvider | ||||
autoCreatedAccount ($user, $source) | ||||
Post-auto-creation callback. More... | ||||
continueSecondaryAccountCreation ($user, $creator, array $reqs) | ||||
Continue an authentication flow. More... | ||||
continueSecondaryAuthentication ($user, array $reqs) | ||||
Continue an authentication flow. More... | ||||
postAccountCreation ($user, $creator, AuthenticationResponse $response) | ||||
Post-creation callback. More... | ||||
postAuthentication ($user, AuthenticationResponse $response) | ||||
Post-login callback. More... | ||||
providerAllowsAuthenticationDataChange (AuthenticationRequest $req, $checkData=true) | ||||
Validate a change of authentication data (e.g. More... | ||||
providerAllowsPropertyChange ($property) | ||||
Determine whether a property can change. More... | ||||
providerChangeAuthenticationData (AuthenticationRequest $req) | ||||
Change or remove authentication data (e.g. More... | ||||
providerRevokeAccessForUser ($username) | ||||
Revoke the user's credentials.This may cause the user to no longer exist for the provider, or the user may continue to exist in a "disabled" state.The intention is that the named account will never again be usable for normal login (i.e. there is no way to undo the revocation of access).
| ||||
testForAccountCreation ($user, $creator, array $reqs) | ||||
Determine whether an account creation may begin. More... | ||||
testUserForCreation ($user, $autocreate, array $options=[]) | ||||
Determine whether an account may be created. More... | ||||
Public Member Functions inherited from MediaWiki\Auth\AbstractAuthenticationProvider | ||||
getUniqueId () | ||||
Return a unique identifier for this instance.This must be the same across requests. If multiple instances return the same ID, exceptions will be thrown from AuthManager.
| ||||
setConfig (Config $config) | ||||
Set configuration. More... | ||||
setLogger (LoggerInterface $logger) | ||||
setManager (AuthManager $manager) | ||||
Set AuthManager. More... | ||||
Protected Member Functions | |
beginLinkAttempt ($user, $key) | |
Begin the link attempt. More... | |
continueLinkAttempt ($user, $key, array $reqs) | |
Continue the link attempt. More... | |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Auth\AbstractAuthenticationProvider | |
Config | $config |
LoggerInterface | $logger |
AuthManager | $manager |
Links third-party authentication to the user's account.
If the user logged into linking provider accounts that aren't linked to a local user, this provider will prompt the user to link them after a successful login or account creation.
To avoid confusing behavior, this provider should be later in the configuration list than any provider that can abort the authentication process, so that it is only invoked for successful authentication.
Definition at line 18 of file ConfirmLinkSecondaryAuthenticationProvider.php.
|
protected |
Begin the link attempt.
Definition at line 46 of file ConfirmLinkSecondaryAuthenticationProvider.php.
References $req, $user, MediaWiki\Auth\AuthenticationResponse\newAbstain(), MediaWiki\Auth\AuthenticationResponse\newUI(), use, and wfMessage().
Referenced by MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\beginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\beginSecondaryAuthentication(), and MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\continueLinkAttempt().
MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginSecondaryAccountCreation | ( | $user, | |
$creator, | |||
array | $reqs | ||
) |
Start an account creation flow.
User | $user | User being created (has been added to the database). This may become a "UserValue" in the future, or User may be refactored into such. |
User | $creator | User doing the creation. This may become a "UserValue" in the future, or User may be refactored into such. |
AuthenticationRequest[] | $reqs |
Implements MediaWiki\Auth\SecondaryAuthenticationProvider.
Definition at line 32 of file ConfirmLinkSecondaryAuthenticationProvider.php.
References $user, and MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\beginLinkAttempt().
MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginSecondaryAuthentication | ( | $user, | |
array | $reqs | ||
) |
Start an authentication flow.
Note that this may be called for a user even if beginSecondaryAccountCreation() was never called. The module should take the opportunity to do any necessary setup in that case.
User | $user | User being authenticated. This may become a "UserValue" in the future, or User may be refactored into such. |
AuthenticationRequest[] | $reqs |
Implements MediaWiki\Auth\SecondaryAuthenticationProvider.
Definition at line 24 of file ConfirmLinkSecondaryAuthenticationProvider.php.
References $user, and MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\beginLinkAttempt().
|
protected |
Continue the link attempt.
Definition at line 79 of file ConfirmLinkSecondaryAuthenticationProvider.php.
References $req, $status, $user, MediaWiki\Auth\AuthManager\ACTION_CHANGE, as, MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\beginLinkAttempt(), class, MediaWiki\Auth\AuthenticationRequest\getRequestByClass(), MediaWiki\Auth\ButtonAuthenticationRequest\getRequestByName(), list, MediaWiki\Auth\AuthenticationResponse\newAbstain(), StatusValue\newGood(), MediaWiki\Auth\AuthenticationResponse\newPass(), MediaWiki\Auth\AuthenticationResponse\newUI(), text, and wfMessage().
Referenced by MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\continueSecondaryAccountCreation(), and MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\continueSecondaryAuthentication().
MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueSecondaryAccountCreation | ( | $user, | |
$creator, | |||
array | $reqs | ||
) |
Continue an authentication flow.
User | $user | User being created (has been added to the database). This may become a "UserValue" in the future, or User may be refactored into such. |
User | $creator | User doing the creation. This may become a "UserValue" in the future, or User may be refactored into such. |
AuthenticationRequest[] | $reqs |
Implements MediaWiki\Auth\SecondaryAuthenticationProvider.
Definition at line 36 of file ConfirmLinkSecondaryAuthenticationProvider.php.
References $user, and MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\continueLinkAttempt().
MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueSecondaryAuthentication | ( | $user, | |
array | $reqs | ||
) |
Continue an authentication flow.
User | $user | User being authenticated. This may become a "UserValue" in the future, or User may be refactored into such. |
AuthenticationRequest[] | $reqs |
Implements MediaWiki\Auth\SecondaryAuthenticationProvider.
Definition at line 28 of file ConfirmLinkSecondaryAuthenticationProvider.php.
References $user, and MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\continueLinkAttempt().
MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::getAuthenticationRequests | ( | $action, | |
array | $options | ||
) |
Return the applicable list of AuthenticationRequests.
Possible values for $action depend on whether the implementing class is also a PreAuthenticationProvider, PrimaryAuthenticationProvider, or SecondaryAuthenticationProvider.
string | $action | |
array | $options | Options are:
|
Implements MediaWiki\Auth\AuthenticationProvider.
Definition at line 20 of file ConfirmLinkSecondaryAuthenticationProvider.php.