FrontendSessionAuthenticator
final class \
- Implements
- AuthenticatorInterface
Authenticates a frontend user from an existing user session, without running the legacy authentication service chain. Also processes the logout request parameter ("logintype=logout") the same way the legacy chain did. Group data is resolved in any case, as frontend groups can apply without a user (e.g. simulation).
Internal
not part of TYPO3 Core API yet, still experimental as part of the authentication pipeline groundwork
Attributes
- #[AsAuthenticator]
- $realm: 'frontend'
- $priority: 90
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, LocalIdentityProvider $identityProvider, LegacyUserPrincipalFactory $principalFactory, LoggerInterface $logger) : mixed
Parameters
- $legacyAuthServiceDetector : LegacyAuthServiceDetector
- $identityProvider : LocalIdentityProvider
- $principalFactory : LegacyUserPrincipalFactory
- $logger : LoggerInterface
authenticate()
public
authenticate(ServerRequestInterface $request, Realm $realm) : AuthenticationResult
Parameters
- $request : ServerRequestInterface
- $realm : Realm