MediaWiki
1.30.0
|
An AuthenticationProvider is used by AuthManager when authenticating users. More...
Public Member Functions | |
getAuthenticationRequests ( $action, array $options) | |
Return the applicable list of AuthenticationRequests. More... | |
getUniqueId () | |
Return a unique identifier for this instance. More... | |
setConfig (Config $config) | |
Set configuration. More... | |
setManager (AuthManager $manager) | |
Set AuthManager. More... | |
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 MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider, MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider, MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider, MediaWiki\Auth\PrimaryAuthenticationProvider, MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider, MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider, MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider, MediaWiki\Auth\AbstractPreAuthenticationProvider, TitleBlacklistPreAuthenticationProvider, MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider, and CaptchaPreAuthenticationProvider.
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\AuthPluginPrimaryAuthenticationProvider, and MediaWiki\Auth\AbstractAuthenticationProvider.
MediaWiki\Auth\AuthenticationProvider::setConfig | ( | Config | $config | ) |
Set configuration.
Config | $config |
Implemented in MediaWiki\Auth\ThrottlePreAuthenticationProvider, MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider, MediaWiki\Auth\AbstractAuthenticationProvider, and MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider.
MediaWiki\Auth\AuthenticationProvider::setManager | ( | AuthManager | $manager | ) |
Set AuthManager.
AuthManager | $manager |
Implemented in MediaWiki\Auth\AbstractAuthenticationProvider.