AuthenticatorManager
final readonly class \
Resolves a request to an authentication outcome by asking the authenticators registered for the realm in order of their priority.
Authenticators registered for "frontend" serve the frontend realm of every site. The first authenticator that returns anything other than NotApplicable determines the outcome. If none does, NotApplicable is returned and the caller decides how to treat the anonymous request. A principal established for another realm than the requested one is refused.
Internal
not part of TYPO3 Core API yet, still experimental as part of the authentication pipeline groundwork
Table of Contents
Methods
- __construct() : mixed
- authenticate() : AuthenticationResult
Methods
__construct()
public
__construct(ContainerInterface $authenticators, array<string, array<int, string>> $authenticatorIdsByRealm) : mixed
Parameters
- $authenticators : ContainerInterface
-
the authenticators by service id
- $authenticatorIdsByRealm : array<string, array<int, string>>
-
service ids per registered realm, ordered by priority
authenticate()
public
authenticate(ServerRequestInterface $request, Realm $realm) : AuthenticationResult
Parameters
- $request : ServerRequestInterface
- $realm : Realm