FrontendUserAuthenticator
readonly class \
- Implements
- MiddlewareInterface
Authenticates the request against the frontend realm of the authentication pipeline, stores the frontend user object in the current request as attribute, and provides the established principal as "frontend.principal" request attribute and as token of the authorization checker while the request is handled. A backend user of the frontend request is checked with isGrantedForUser().
Table of Contents
Interfaces
- MiddlewareInterface
Properties
- $authenticatorManager : AuthenticatorManager
- $context : Context
- $tokenStorage : TokenStorageInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
- sessionGarbageCollection() : void
- Garbage collection for fe_sessions (with a probability)
Properties
$authenticatorManager
protected
AuthenticatorManager
$authenticatorManager
$context
protected
Context
$context
$tokenStorage
protected
TokenStorageInterface
$tokenStorage
Methods
__construct()
public
__construct(Context $context, AuthenticatorManager $authenticatorManager, TokenStorageInterface $tokenStorage) : mixed
Parameters
- $context : Context
- $authenticatorManager : AuthenticatorManager
- $tokenStorage : TokenStorageInterface
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfacesessionGarbageCollection()
Garbage collection for fe_sessions (with a probability)
protected
sessionGarbageCollection() : void