FrontendUserAuthenticator implements MiddlewareInterface, LoggerAwareInterface uses LoggerAwareTrait
This middleware authenticates a Frontend User (fe_users).
Table of Contents
Interfaces
- MiddlewareInterface
- LoggerAwareInterface
Properties
Methods
- __construct() : mixed
- process() : ResponseInterface
- Creates a frontend user authentication object, tries to authenticate a user and stores it in the current request as attribute.
- ensureLoginRateLimit() : LimiterInterface|null
- sessionGarbageCollection() : void
- Garbage collection for fe_sessions (with a probability)
- shallEnforceLoginSigning() : bool
Properties
$context
protected
Context
$context
$rateLimiterFactory
protected
RateLimiterFactory
$rateLimiterFactory
Methods
__construct()
public
__construct(Context $context, RateLimiterFactory $rateLimiterFactory) : mixed
Parameters
- $context : Context
- $rateLimiterFactory : RateLimiterFactory
process()
Creates a frontend user authentication object, tries to authenticate a user and stores it in the current request as attribute.
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfaceensureLoginRateLimit()
protected
ensureLoginRateLimit(FrontendUserAuthentication $user, ServerRequestInterface $request) : LimiterInterface|null
Parameters
- $user : FrontendUserAuthentication
- $request : ServerRequestInterface
Return values
LimiterInterface|nullsessionGarbageCollection()
Garbage collection for fe_sessions (with a probability)
protected
sessionGarbageCollection() : void
shallEnforceLoginSigning()
protected
shallEnforceLoginSigning() : bool