final class OidcService (View source)

Runs the OIDC login flow: builds the authorization redirect and turns the callback into a session.

Constants

private FLOW_COOKIE_NAME

private FLOW_COOKIE_TTL

Methods

__construct(ConfigurationInterface $configManager, OidcConfigurationService $oidcConfigurationService, UserProvisioningService $userProvisioningService, LoggerInterface $logger, AuthenticationService $authenticationService, AuditService $auditService, MfaService $mfaService, SessionInterface $session, Request|null $request = null, GenericProvider|null $provider = null)

No description

bool
isEnabled()

No description

array
getAvailableProviders()

No description

string
initiateAuthFlow(string $providerId)

No description

string|null
handleCallback()

Finishes the login from the provider's callback. Returns the application path the caller must redirect to when a second factor is still owed, null otherwise.

Details

__construct(ConfigurationInterface $configManager, OidcConfigurationService $oidcConfigurationService, UserProvisioningService $userProvisioningService, LoggerInterface $logger, AuthenticationService $authenticationService, AuditService $auditService, MfaService $mfaService, SessionInterface $session, Request|null $request = null, GenericProvider|null $provider = null)

No description

Parameters

ConfigurationInterface $configManager
OidcConfigurationService $oidcConfigurationService
UserProvisioningService $userProvisioningService
LoggerInterface $logger
AuthenticationService $authenticationService
AuditService $auditService
MfaService $mfaService
SessionInterface $session
Request|null $request
GenericProvider|null $provider

bool isEnabled()

No description

Return Value

bool

array getAvailableProviders()

No description

Return Value

array

string initiateAuthFlow(string $providerId)

No description

Parameters

string $providerId

Return Value

string

string|null handleCallback()

Finishes the login from the provider's callback. Returns the application path the caller must redirect to when a second factor is still owed, null otherwise.

Return Value

string|null