final class AuthServices (View source)

Sessions, credentials, MFA, API keys and the audit trail. The session, redirect and authentication services are one instance per request.

Methods

__construct(PDO $db, ConfigurationInterface $config, LoggerInterface $logger, ControllerServiceFactory $services)

No description

sessionService()

No description

redirectService()

No description

authenticationService()

Shared login/logout redirect handling for the session-backed controllers and the OIDC and SAML flows they hand off to.

clientContext()

The requesting client, resolved once so every consumer logs the same address and user agent.

urlService()

Absolute URLs for emails and redirects; the protocol comes from the request environment when no application_url is configured.

mfaService()

No description

mailService()

One mail transport per request, shared by MFA, password reset, username recovery and the zone-access notifications.

apiKeyService()

No description

auditService()

No description

auditLogWriter()

No description

apiLogger()

No description

Details

__construct(PDO $db, ConfigurationInterface $config, LoggerInterface $logger, ControllerServiceFactory $services)

No description

Parameters

PDO $db
ConfigurationInterface $config
LoggerInterface $logger
ControllerServiceFactory $services

SessionService sessionService()

No description

Return Value

SessionService

FormStateService formStateService()

No description

Return Value

FormStateService

RedirectService redirectService()

No description

Return Value

RedirectService

AuthenticationService authenticationService()

Shared login/logout redirect handling for the session-backed controllers and the OIDC and SAML flows they hand off to.

Return Value

AuthenticationService

ClientContext clientContext()

The requesting client, resolved once so every consumer logs the same address and user agent.

Return Value

ClientContext

UrlService urlService()

Absolute URLs for emails and redirects; the protocol comes from the request environment when no application_url is configured.

Return Value

UrlService

UserMfaRepositoryInterface userMfaRepository()

No description

MfaService mfaService()

No description

Return Value

MfaService

MailService mailService()

One mail transport per request, shared by MFA, password reset, username recovery and the zone-access notifications.

Return Value

MailService

SamlConfigurationService samlConfigurationService()

No description

OidcConfigurationService oidcConfigurationService()

No description

RecaptchaService recaptchaService()

No description

Return Value

RecaptchaService

LoginAttemptService loginAttemptService()

No description

Return Value

LoginAttemptService

LoginAttemptRepositoryInterface loginAttemptRepository()

No description

ApiKeyRepositoryInterface apiKeyRepository()

No description

ApiKeyService apiKeyService()

No description

Return Value

ApiKeyService

ApiKeyAuthenticationMiddleware apiKeyAuthenticationMiddleware()

No description

BasicAuthenticationMiddleware basicAuthenticationMiddleware()

No description

PasswordResetTokenRepositoryInterface passwordResetTokenRepository()

No description

UsernameRecoveryRepositoryInterface usernameRecoveryRepository()

No description

AuditService auditService()

No description

Return Value

AuditService

AuditLogWriter auditLogWriter()

No description

Return Value

AuditLogWriter

DbApiLogger apiLogger()

No description

Return Value

DbApiLogger