AsAuthenticator

final readonly class \TYPO3\CMS\Core\Attribute\AsAuthenticator

Registers an authenticator of the authentication pipeline for a realm.

The class must implement AuthenticatorInterface. The attribute can be repeated to serve several realms, each with a priority of its own.

Attributes

#[Attribute]
\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE

Table of Contents

Constants

TAG_NAME  : string = 'core.authenticator'

Properties

$priority  : int
Authenticators with a higher priority are asked first
$realm  : string
"backend", "frontend" for the frontend of every site, or the identifier of a custom realm such as "api"

Methods

__construct()  : mixed

Constants

TAG_NAME

public string TAG_NAME = 'core.authenticator'

Properties

$priority

Authenticators with a higher priority are asked first

public int $priority = 0

$realm

"backend", "frontend" for the frontend of every site, or the identifier of a custom realm such as "api"

public string $realm

Methods

__construct()

public __construct(string $realm[, int $priority = 0 ]) : mixed

Parameters

$realm : string
$priority : int = 0
On this page