SessionAuthenticator
final class \
- Implements
- AuthenticatorInterface
Authenticates a backend user from an existing user session, without running the legacy authentication service chain. Also processes the logout request parameter the same way the legacy chain did, and challenges sessions that have not passed a required multi-factor authentication yet.
Internal
not part of TYPO3 Core API yet, still experimental as part of the authentication pipeline groundwork
Attributes
- #[AsAuthenticator]
- $realm: 'backend'
- $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, MfaChallengeResponseFactory $mfaChallengeResponseFactory, LoggerInterface $logger) : mixed
Parameters
- $legacyAuthServiceDetector : LegacyAuthServiceDetector
- $identityProvider : LocalIdentityProvider
- $principalFactory : LegacyUserPrincipalFactory
- $mfaChallengeResponseFactory : MfaChallengeResponseFactory
- $logger : LoggerInterface
authenticate()
public
authenticate(ServerRequestInterface $request, Realm $realm) : AuthenticationResult
Parameters
- $request : ServerRequestInterface
- $realm : Realm