AnonymousAuthenticationListener
extends AbstractListener
in package
implements
ListenerInterface
Uses
LegacyListenerTrait
AnonymousAuthenticationListener automatically adds a Token if none is already present.
Tags
Interfaces, Classes, Traits and Enums
- ListenerInterface
- Interface that must be implemented by firewall listeners.
Table of Contents
- $authenticationManager : mixed
- $logger : mixed
- $secret : mixed
- $tokenStorage : mixed
- __construct() : mixed
- __invoke() : mixed
- authenticate() : mixed
- Handles anonymous authentication.
- supports() : bool|null
- Tells whether the authenticate() method should be called or not depending on the incoming request.
Properties
$authenticationManager
private
mixed
$authenticationManager
$logger
private
mixed
$logger
$secret
private
mixed
$secret
$tokenStorage
private
mixed
$tokenStorage
Methods
__construct()
public
__construct(TokenStorageInterface $tokenStorage, string $secret[, LoggerInterface $logger = null ][, AuthenticationManagerInterface $authenticationManager = null ]) : mixed
Parameters
- $tokenStorage : TokenStorageInterface
- $secret : string
- $logger : LoggerInterface = null
- $authenticationManager : AuthenticationManagerInterface = null
Return values
mixed —__invoke()
public
final __invoke(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —authenticate()
Handles anonymous authentication.
public
authenticate(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —supports()
Tells whether the authenticate() method should be called or not depending on the incoming request.
public
supports(Request $request) : bool|null
Parameters
- $request : Request