AuthenticationProviderManager
in package
implements
AuthenticationManagerInterface
AuthenticationProviderManager uses a list of AuthenticationProviderInterface instances to authenticate a Token.
Tags
Interfaces, Classes, Traits and Enums
- AuthenticationManagerInterface
- AuthenticationManagerInterface is the interface for authentication managers, which process Token authentication.
Table of Contents
- $eraseCredentials : mixed
- $eventDispatcher : mixed
- $providers : mixed
- __construct() : mixed
- authenticate() : TokenInterface
- Attempts to authenticate a TokenInterface object.
- setEventDispatcher() : mixed
Properties
$eraseCredentials
private
mixed
$eraseCredentials
$eventDispatcher
private
mixed
$eventDispatcher
$providers
private
mixed
$providers
Methods
__construct()
public
__construct(iteratable<string|int, mixed>|array<string|int, AuthenticationProviderInterface> $providers[, bool $eraseCredentials = true ]) : mixed
Parameters
- $providers : iteratable<string|int, mixed>|array<string|int, AuthenticationProviderInterface>
-
An iterable with AuthenticationProviderInterface instances as values
- $eraseCredentials : bool = true
-
Whether to erase credentials after authentication or not
Tags
Return values
mixed —authenticate()
Attempts to authenticate a TokenInterface object.
public
authenticate(TokenInterface $token) : TokenInterface
Parameters
- $token : TokenInterface
Return values
TokenInterface —An authenticated TokenInterface instance, never null
setEventDispatcher()
public
setEventDispatcher(EventDispatcherInterface $dispatcher) : mixed
Parameters
- $dispatcher : EventDispatcherInterface