MediaWiki master
|
A base class that implements some of the boilerplate for an AuthenticationProvider. More...
Inherits MediaWiki\Auth\AuthenticationProvider.
Inherited by MediaWiki\Auth\AbstractPreAuthenticationProvider, MediaWiki\Auth\AbstractPrimaryAuthenticationProvider, and MediaWiki\Auth\AbstractSecondaryAuthenticationProvider.
Public Member Functions | |
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.
| |
init (LoggerInterface $logger, AuthManager $manager, HookContainer $hookContainer, Config $config, UserNameUtils $userNameUtils) | |
Initialise with dependencies of an AuthenticationProvider. | |
Public Member Functions inherited from MediaWiki\Auth\AuthenticationProvider | |
getAuthenticationRequests ( $action, array $options) | |
Return the applicable list of AuthenticationRequests. | |
Protected Member Functions | |
getHookContainer () | |
getHookRunner () | |
postInitSetup () | |
A provider can override this to do any necessary setup after init() is called. | |
Protected Attributes | |
Config | $config |
LoggerInterface | $logger |
AuthManager | $manager |
UserNameUtils | $userNameUtils |
A base class that implements some of the boilerplate for an AuthenticationProvider.
Definition at line 36 of file AbstractAuthenticationProvider.php.
|
protected |
|
protected |
Definition at line 100 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\ThrottlePreAuthenticationProvider\testForAccountCreation().
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.
Implements MediaWiki\Auth\AuthenticationProvider.
Definition at line 82 of file AbstractAuthenticationProvider.php.
MediaWiki\Auth\AbstractAuthenticationProvider::init | ( | LoggerInterface | $logger, |
AuthManager | $manager, | ||
HookContainer | $hookContainer, | ||
Config | $config, | ||
UserNameUtils | $userNameUtils ) |
Initialise with dependencies of an AuthenticationProvider.
Definition at line 52 of file AbstractAuthenticationProvider.php.
References MediaWiki\Auth\AbstractAuthenticationProvider\$config, MediaWiki\Auth\AbstractAuthenticationProvider\$logger, MediaWiki\Auth\AbstractAuthenticationProvider\$manager, MediaWiki\Auth\AbstractAuthenticationProvider\$userNameUtils, and MediaWiki\Auth\AbstractAuthenticationProvider\postInitSetup().
|
protected |
A provider can override this to do any necessary setup after init() is called.
Reimplemented in MediaWiki\Auth\AbstractTemporaryPasswordPrimaryAuthenticationProvider, MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider, MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider, and MediaWiki\Auth\ThrottlePreAuthenticationProvider.
Definition at line 75 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init().
|
protected |
Definition at line 39 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init().
|
protected |
Definition at line 37 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init().
|
protected |
Definition at line 38 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init().
|
protected |
Definition at line 42 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init().