class SamlConfigurationService extends LoggingService (View source)

Properties

protected Logger $logger from  LoggingService

Methods

__construct(ConfigurationManager $configManager, Logger $logger)

No description

void
logDebug(string $message, array $context = [])

No description

void
logInfo(string $message, array $context = [])

No description

void
logWarning(string $message, array $context = [])

No description

void
logError(string $message, array $context = [])

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(ConfigurationManager $configManager, Logger $logger)

No description

Parameters

ConfigurationManager $configManager
Logger $logger

protected void logDebug(string $message, array $context = [])

No description

Parameters

string $message
array $context

Return Value

void

protected void logInfo(string $message, array $context = [])

No description

Parameters

string $message
array $context

Return Value

void

protected void logWarning(string $message, array $context = [])

No description

Parameters

string $message
array $context

Return Value

void

protected void logError(string $message, array $context = [])

No description

Parameters

string $message
array $context

Return Value

void

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