LegacyFrontendAuthenticator
final class \
- Implements
- AuthenticatorInterface
Performs frontend authentication through the legacy user authentication object and its T3_SERVICES chain, exposed as a pipeline authenticator.
Only used when an extension registered an additional authentication service or modified the chain behavior - every existing authentication service keeps working unchanged this way. Installations without such extensions are handled by the native FrontendSessionAuthenticator and FrontendPasswordAuthenticator. The frontend user object to operate on is taken from the "frontend.user" request attribute prepared by the FrontendUserAuthenticator middleware.
Internal
not part of TYPO3 Core API, only exists for the migration period towards native pipeline authenticators
Attributes
- #[AsAuthenticator]
- $realm: 'frontend'
Table of Contents
Interfaces
- AuthenticatorInterface
- A single, composable step in the authentication pipeline of a realm.
Methods
- __construct() : mixed
- authenticate() : AuthenticationResult
Methods
__construct()
public
__construct(LegacyAuthServiceDetector $legacyAuthServiceDetector, LoginRateLimiterGuard $rateLimiterGuard, EventDispatcherInterface $eventDispatcher, LegacyUserPrincipalFactory $principalFactory) : mixed
Parameters
- $legacyAuthServiceDetector : LegacyAuthServiceDetector
- $rateLimiterGuard : LoginRateLimiterGuard
- $eventDispatcher : EventDispatcherInterface
- $principalFactory : LegacyUserPrincipalFactory
authenticate()
public
authenticate(ServerRequestInterface $request, Realm $realm) : AuthenticationResult
Parameters
- $request : ServerRequestInterface
- $realm : Realm