‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator:

Public Member Functions

 __construct (protected readonly Context $context, protected readonly RateLimiterFactory $rateLimiterFactory, protected readonly EventDispatcherInterface $eventDispatcher)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

 sessionGarbageCollection ()
 
 ensureLoginRateLimit (FrontendUserAuthentication $user, ServerRequestInterface $request)
 

Detailed Description

This middleware authenticates a Frontend User (fe_users).

Definition at line 40 of file FrontendUserAuthenticator.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator::__construct ( protected readonly Context  $context,
protected readonly RateLimiterFactory  $rateLimiterFactory,
protected readonly EventDispatcherInterface  $eventDispatcher 
)

Definition at line 44 of file FrontendUserAuthenticator.php.

Member Function Documentation

◆ ensureLoginRateLimit()

TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator::ensureLoginRateLimit ( FrontendUserAuthentication  $user,
ServerRequestInterface  $request 
)
protected

◆ process()

TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 
)

Creates a frontend user authentication object, tries to authenticate a user and stores it in the current request as attribute.

Definition at line 54 of file FrontendUserAuthenticator.php.

References TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator\ensureLoginRateLimit(), and TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator\sessionGarbageCollection().

◆ sessionGarbageCollection()

TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator::sessionGarbageCollection ( )
protected

Garbage collection for fe_sessions (with a probability)

Definition at line 94 of file FrontendUserAuthenticator.php.

References TYPO3\CMS\Core\Session\UserSessionManager\create().

Referenced by TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator\process().