MediaWiki REL1_35
MediaWiki\Auth\AbstractAuthenticationProvider Class Reference

A base class that implements some of the boilerplate for an AuthenticationProvider Stable to extend. More...

Inheritance diagram for MediaWiki\Auth\AbstractAuthenticationProvider:
Collaboration diagram for MediaWiki\Auth\AbstractAuthenticationProvider:

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.
Returns
string

 
 setConfig (Config $config)
 Stable to override.
 
 setHookContainer (HookContainer $hookContainer)
 Set the HookContainer.
 
 setLogger (LoggerInterface $logger)
 
 setManager (AuthManager $manager)
 Set AuthManager.
 
- Public Member Functions inherited from MediaWiki\Auth\AuthenticationProvider
 getAuthenticationRequests ( $action, array $options)
 Return the applicable list of AuthenticationRequests.
 

Protected Member Functions

 getHookContainer ()
 
 getHookRunner ()
 

Protected Attributes

Config $config
 
LoggerInterface $logger
 
AuthManager $manager
 

Private Attributes

HookContainer $hookContainer
 
HookRunner $hookRunner
 

Detailed Description

A base class that implements some of the boilerplate for an AuthenticationProvider Stable to extend.

Since
1.27

Definition at line 35 of file AbstractAuthenticationProvider.php.

Member Function Documentation

◆ getHookContainer()

MediaWiki\Auth\AbstractAuthenticationProvider::getHookContainer ( )
protected
Since
1.35
Returns
HookContainer

Definition at line 80 of file AbstractAuthenticationProvider.php.

◆ getHookRunner()

◆ getUniqueId()

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.

Returns
string

Note
Override this if it makes sense to support more than one instance

Implements MediaWiki\Auth\AuthenticationProvider.

Definition at line 72 of file AbstractAuthenticationProvider.php.

◆ setConfig()

◆ setHookContainer()

MediaWiki\Auth\AbstractAuthenticationProvider::setHookContainer ( HookContainer  $hookContainer)

Set the HookContainer.

Parameters
HookContainer$hookContainer

Implements MediaWiki\Auth\AuthenticationProvider.

Definition at line 63 of file AbstractAuthenticationProvider.php.

References MediaWiki\Auth\AbstractAuthenticationProvider\$hookContainer.

◆ setLogger()

MediaWiki\Auth\AbstractAuthenticationProvider::setLogger ( LoggerInterface  $logger)

◆ setManager()

MediaWiki\Auth\AbstractAuthenticationProvider::setManager ( AuthManager  $manager)

Set AuthManager.

Parameters
AuthManager$manager

Implements MediaWiki\Auth\AuthenticationProvider.

Definition at line 51 of file AbstractAuthenticationProvider.php.

References MediaWiki\Auth\AbstractAuthenticationProvider\$manager.

Member Data Documentation

◆ $config

◆ $hookContainer

HookContainer MediaWiki\Auth\AbstractAuthenticationProvider::$hookContainer
private

◆ $hookRunner

HookRunner MediaWiki\Auth\AbstractAuthenticationProvider::$hookRunner
private

Definition at line 45 of file AbstractAuthenticationProvider.php.

◆ $logger

LoggerInterface MediaWiki\Auth\AbstractAuthenticationProvider::$logger
protected

◆ $manager

AuthManager MediaWiki\Auth\AbstractAuthenticationProvider::$manager
protected

The documentation for this class was generated from the following file: