MediaWiki REL1_34
|
An AuthenticationProvider is used by AuthManager when authenticating users. More...
Public Member Functions | |
getAuthenticationRequests ( $action, array $options) | |
Return the applicable list of AuthenticationRequests. | |
getUniqueId () | |
Return a unique identifier for this instance. | |
setConfig (Config $config) | |
Set configuration. | |
setManager (AuthManager $manager) | |
Set AuthManager. | |
An AuthenticationProvider is used by AuthManager when authenticating users.
This interface should not be implemented directly; use one of its children.
Authentication providers can be registered via $wgAuthManagerAutoConfig.
Definition at line 39 of file AuthenticationProvider.php.
MediaWiki\Auth\AuthenticationProvider::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:
|
Implemented in CaptchaPreAuthenticationProvider, MediaWiki\Extension\OATHAuth\Auth\SecondaryAuthenticationProvider, MediaWiki\Extension\OATHAuth\Auth\TOTPSecondaryAuthenticationProvider, TitleBlacklistPreAuthenticationProvider, MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider, MediaWiki\Auth\AbstractPreAuthenticationProvider, MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider, MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider, MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider, MediaWiki\Auth\PrimaryAuthenticationProvider, MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider, and MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider.
Referenced by MediaWiki\Auth\AbstractSecondaryAuthenticationProvider\providerRevokeAccessForUser().
MediaWiki\Auth\AuthenticationProvider::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.
Implemented in MediaWiki\Auth\AbstractAuthenticationProvider.
Referenced by MediaWiki\Auth\AuthManager\getAuthenticationRequestsInternal().
MediaWiki\Auth\AuthenticationProvider::setConfig | ( | Config | $config | ) |
Set configuration.
Config | $config |
Implemented in MediaWiki\Auth\AbstractAuthenticationProvider, MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider, MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider, and MediaWiki\Auth\ThrottlePreAuthenticationProvider.
MediaWiki\Auth\AuthenticationProvider::setManager | ( | AuthManager | $manager | ) |
Set AuthManager.
AuthManager | $manager |
Implemented in MediaWiki\Auth\AbstractAuthenticationProvider.