‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator:

Public Member Functions

ResponseInterface process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

bool isLoggedInBackendUserRequired (string $routePath)
 
 setBackendUserAspect (Context $context, BackendUserAuthentication $user)
 

Protected Attributes

array $publicRoutes
 

Detailed Description

Initializes the backend user authentication object (BE_USER) and the global LANG object.

Definition at line 34 of file BackendUserAuthenticator.php.

Member Function Documentation

◆ isLoggedInBackendUserRequired()

bool TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::isLoggedInBackendUserRequired ( string  $routePath)
protected

Check if the user is required for the request If we're trying to do a login or an ajax login, don't require a user

Parameters
string$routePath‪the Route path to check against, something like '
Returns
‪bool whether the request can proceed without a login required

Definition at line 80 of file BackendUserAuthenticator.php.

Referenced by TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator\process().

◆ process()

ResponseInterface TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 
)

◆ setBackendUserAspect()

TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::setBackendUserAspect ( Context  $context,
BackendUserAuthentication  $user 
)
protected

Register the backend user as aspect

Parameters
Context$context
BackendUserAuthentication$user

Definition at line 91 of file BackendUserAuthenticator.php.

References TYPO3\CMS\Core\Context\Context\setAspect().

Referenced by TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator\process().

Member Data Documentation

◆ $publicRoutes

array TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::$publicRoutes
protected
Initial value:
= array(
'/login',
'/login/frame',
'/ajax/login',
'/ajax/logout',
'/ajax/login/preflight',
'/ajax/login/refresh',
'/ajax/login/timedout',
'/ajax/rsa/publickey',
'/ajax/core/requirejs',
)

List of requests that don't need a valid BE user

Definition at line 40 of file BackendUserAuthenticator.php.