PasswordAuthenticator

final class \TYPO3\CMS\Backend\Security\PasswordAuthenticator

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.

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

isLoginSubmission()

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

Return values

bool
On this page