PasswordAuthenticator
final class \
- Implements
- AuthenticatorInterface
Authenticates a backend user by username and password submitted to the backend login endpoints, without running the legacy authentication service chain. Credential processing is bound to the login routes - other routes never evaluate submitted credentials on this path.
Internal
not part of TYPO3 Core API yet, still experimental as part of the authentication pipeline groundwork
Attributes
- #[AsAuthenticator]
- $realm: 'backend'
- $priority: 100
Table of Contents
Interfaces
- AuthenticatorInterface
- A single, composable step in the authentication pipeline of a realm.
Methods
- __construct() : mixed
- authenticate() : AuthenticationResult
- isLoginSubmission() : bool
- Whether the request submits credentials on one of the login routes.
Methods
__construct()
public
__construct(LegacyAuthServiceDetector $legacyAuthServiceDetector, LocalIdentityProvider $identityProvider, LegacyUserPrincipalFactory $principalFactory, MfaChallengeResponseFactory $mfaChallengeResponseFactory, LoginRateLimiterGuard $rateLimiterGuard, PasswordCredentialVerifier $credentialVerifier, EventDispatcherInterface $eventDispatcher, LoggerInterface $logger) : mixed
Parameters
- $legacyAuthServiceDetector : LegacyAuthServiceDetector
- $identityProvider : LocalIdentityProvider
- $principalFactory : LegacyUserPrincipalFactory
- $mfaChallengeResponseFactory : MfaChallengeResponseFactory
- $rateLimiterGuard : LoginRateLimiterGuard
- $credentialVerifier : PasswordCredentialVerifier
- $eventDispatcher : EventDispatcherInterface
- $logger : LoggerInterface
authenticate()
public
authenticate(ServerRequestInterface $request, Realm $realm) : AuthenticationResult
Parameters
- $request : ServerRequestInterface
- $realm : Realm
Return values
AuthenticationResultisLoginSubmission()
Whether the request submits credentials on one of the login routes.
public
static isLoginSubmission(ServerRequestInterface $request) : bool
Credentials are only accepted from the body of a POST request.
Parameters
- $request : ServerRequestInterface