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

Public Member Functions

 __construct (Context $context, protected readonly LanguageServiceFactory $languageServiceFactory)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Middleware\BackendUserAuthenticator
 __construct (protected Context $context)
 

Protected Member Functions

 initializeBackendUser (ServerRequestInterface $request)
 
 isAuthenticated (FrontendBackendUserAuthentication $user, ServerRequestInterface $request, NormalizedParams $normalizedParams)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Middleware\BackendUserAuthenticator
ResponseInterface applyHeadersToResponse (ResponseInterface $response)
 
 setBackendUserAspect (?BackendUserAuthentication $user, ?int $alternativeWorkspaceId=null)
 

Detailed Description

This middleware authenticates a Backend User (be_user) (pre)-viewing a frontend page.

This middleware also ensures that $GLOBALS['LANG'] is available, however it is possible that a different middleware later-on might unset the BE_USER as he/she is not allowed to preview a certain page due to rights management. As this can only happen once the page ID is resolved, this will happen after the routing middleware.

Definition at line 41 of file BackendUserAuthenticator.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\BackendUserAuthenticator::__construct ( Context  $context,
protected readonly LanguageServiceFactory  $languageServiceFactory 
)

Definition at line 43 of file BackendUserAuthenticator.php.

Member Function Documentation

◆ initializeBackendUser()

TYPO3\CMS\Frontend\Middleware\BackendUserAuthenticator::initializeBackendUser ( ServerRequestInterface  $request)
protected

◆ isAuthenticated()

TYPO3\CMS\Frontend\Middleware\BackendUserAuthenticator::isAuthenticated ( FrontendBackendUserAuthentication  $user,
ServerRequestInterface  $request,
NormalizedParams  $normalizedParams 
)
protected

◆ process()

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