MediaWiki REL1_40
|
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. | |
setConfig (Config $config) | |
setHookContainer (HookContainer $hookContainer) | |
setLogger (LoggerInterface $logger) | |
setManager (AuthManager $manager) | |
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 171 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider\getNewPasswordExpiry(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendNewAccountEmail(), and 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 153 of file AbstractAuthenticationProvider.php.
MediaWiki\Auth\AbstractAuthenticationProvider::init | ( | LoggerInterface | $logger, |
AuthManager | $manager, | ||
HookContainer | $hookContainer, | ||
Config | $config, | ||
UserNameUtils | $userNameUtils ) |
Initialise with dependencies of an AuthenticationProvider.
LoggerInterface | $logger | |
AuthManager | $manager | |
HookContainer | $hookContainer | |
Config | $config | |
UserNameUtils | $userNameUtils |
Definition at line 69 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\CheckBlocksSecondaryAuthenticationProvider, MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider, MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider, and MediaWiki\Auth\ThrottlePreAuthenticationProvider.
Definition at line 92 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init().
MediaWiki\Auth\AbstractAuthenticationProvider::setConfig | ( | Config | $config | ) |
Config | $config |
Implements MediaWiki\Auth\AuthenticationProvider.
Definition at line 130 of file AbstractAuthenticationProvider.php.
References MediaWiki\Auth\AbstractAuthenticationProvider\$config, and wfDeprecated().
MediaWiki\Auth\AbstractAuthenticationProvider::setHookContainer | ( | HookContainer | $hookContainer | ) |
Implements MediaWiki\Auth\AuthenticationProvider.
Definition at line 143 of file AbstractAuthenticationProvider.php.
References wfDeprecated().
MediaWiki\Auth\AbstractAuthenticationProvider::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 103 of file AbstractAuthenticationProvider.php.
References MediaWiki\Auth\AbstractAuthenticationProvider\$logger, and wfDeprecated().
MediaWiki\Auth\AbstractAuthenticationProvider::setManager | ( | AuthManager | $manager | ) |
Implements MediaWiki\Auth\AuthenticationProvider.
Definition at line 116 of file AbstractAuthenticationProvider.php.
References MediaWiki\Auth\AbstractAuthenticationProvider\$manager, and wfDeprecated().
|
protected |
Definition at line 44 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init(), and MediaWiki\Auth\AbstractAuthenticationProvider\setConfig().
|
protected |
Definition at line 38 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init(), and MediaWiki\Auth\AbstractAuthenticationProvider\setLogger().
|
protected |
Definition at line 41 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init(), and MediaWiki\Auth\AbstractAuthenticationProvider\setManager().
|
protected |
Definition at line 53 of file AbstractAuthenticationProvider.php.
Referenced by MediaWiki\Auth\AbstractAuthenticationProvider\init().