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

Public Member Functions

 __construct (Context $context, RateLimiterFactory $rateLimiterFactory)
 
ResponseInterface process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

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

Protected Attributes

Context $context
 
RateLimiterFactory $rateLimiterFactory
 

Detailed Description

This middleware authenticates a Frontend User (fe_users).

Definition at line 39 of file FrontendUserAuthenticator.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ ensureLoginRateLimit()

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

◆ process()

ResponseInterface 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.

Parameters
ServerRequestInterface$request
RequestHandlerInterface$handler
Returns
‪ResponseInterface

Definition at line 62 of file FrontendUserAuthenticator.php.

References TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator\ensureLoginRateLimit(), TYPO3\CMS\Core\Utility\GeneralUtility\intExplode(), TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator\sessionGarbageCollection(), TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator\shallEnforceLoginSigning(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ sessionGarbageCollection()

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

Garbage collection for fe_sessions (with a probability)

Definition at line 114 of file FrontendUserAuthenticator.php.

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

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

◆ shallEnforceLoginSigning()

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

Member Data Documentation

◆ $context

Context TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator::$context
protected

◆ $rateLimiterFactory

RateLimiterFactory TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator::$rateLimiterFactory
protected