FrontendUserAuthenticator implements MiddlewareInterface, LoggerAwareInterface uses LoggerAwareTrait
This middleware authenticates a Frontend User (fe_users).
Table of Contents
Interfaces
- MiddlewareInterface
- LoggerAwareInterface
Properties
- $context : Context
- $eventDispatcher : EventDispatcherInterface
- $rateLimiterFactory : RateLimiterFactory
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)
Properties
$context read-only
protected
Context
$context
$eventDispatcher read-only
protected
EventDispatcherInterface
$eventDispatcher
$rateLimiterFactory read-only
protected
RateLimiterFactory
$rateLimiterFactory
Methods
__construct()
public
__construct(Context $context, RateLimiterFactory $rateLimiterFactory, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $context : Context
- $rateLimiterFactory : RateLimiterFactory
- $eventDispatcher : EventDispatcherInterface
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