class SamlConfigurationService (View source)

Reads the saml provider and SP settings and builds the OneLogin toolkit settings array.

Methods

__construct(ConfigurationInterface $configManager, LoggerInterface $logger)

No description

array|null
getProviderConfig(string $providerId)

No description

string|null
describeProviderConfigError(string $providerId)

Return a human-readable reason why the SAML provider configuration is unusable, or null if it passes all checks. Mirrors the validation performed by getProviderConfig() so callers can surface the actual cause (missing entity_id, malformed x509cert, ...) to end users instead of a generic "not found or not configured" message.

array
getAllProviderConfigs()

No description

array
getServiceProviderConfig()

No description

array
bool
isAutoProvisioningTemplateMissing()

Auto-provisioning aborts for any user who matches no group mapping when there is no default template to fall back on, so the login fails with a generic error. Reported to superusers on the dashboard.

bool
isEnabled()

No description

array
generateOneLoginSettings(string $providerId)

Generate OneLogin SAML settings array from configuration

Details

__construct(ConfigurationInterface $configManager, LoggerInterface $logger)

No description

Parameters

ConfigurationInterface $configManager
LoggerInterface $logger

array|null getProviderConfig(string $providerId)

No description

Parameters

string $providerId

Return Value

array|null

string|null describeProviderConfigError(string $providerId)

Return a human-readable reason why the SAML provider configuration is unusable, or null if it passes all checks. Mirrors the validation performed by getProviderConfig() so callers can surface the actual cause (missing entity_id, malformed x509cert, ...) to end users instead of a generic "not found or not configured" message.

Parameters

string $providerId

Return Value

string|null

array getAllProviderConfigs()

No description

Return Value

array

array getServiceProviderConfig()

No description

Return Value

array

array validatePermissionTemplateMapping()

No description

Return Value

array

bool isAutoProvisioningTemplateMissing()

Auto-provisioning aborts for any user who matches no group mapping when there is no default template to fall back on, so the login fails with a generic error. Reported to superusers on the dashboard.

Return Value

bool

bool isEnabled()

No description

Return Value

bool

array generateOneLoginSettings(string $providerId)

Generate OneLogin SAML settings array from configuration

Parameters

string $providerId

Return Value

array