MediaWiki master
|
An AuthenticationProvider is used by AuthManager when authenticating users. More...
Inherited by MediaWiki\Auth\AbstractAuthenticationProvider, MediaWiki\Auth\PreAuthenticationProvider, MediaWiki\Auth\PrimaryAuthenticationProvider, and MediaWiki\Auth\SecondaryAuthenticationProvider.
Public Member Functions | |
getAuthenticationRequests ( $action, array $options) | |
Return the applicable list of AuthenticationRequests. | |
getUniqueId () | |
Return a unique identifier for this instance. | |
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 36 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\AbstractPasswordPrimaryAuthenticationProvider, MediaWiki\Auth\AbstractPreAuthenticationProvider, MediaWiki\Auth\AbstractTemporaryPasswordPrimaryAuthenticationProvider, MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider, MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider, MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider, MediaWiki\Auth\PrimaryAuthenticationProvider, and MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider.
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.