Module: BetterAuth::SSO::SAML::ErrorCodes

Defined in:
lib/better_auth/sso/saml/error_codes.rb

Constant Summary collapse

SAML_ERROR_CODES =
{
  single_logout_not_enabled: "Single Logout is not enabled",
  invalid_logout_response: "Invalid LogoutResponse",
  invalid_logout_request: "Invalid LogoutRequest",
  logout_failed_at_idp: "Logout failed at IdP",
  idp_slo_not_supported: "IdP does not support Single Logout Service",
  saml_provider_not_found: "SAML provider not found"
}.freeze

Class Method Summary collapse

Class Method Details

.message(code) ⇒ Object



18
19
20
# File 'lib/better_auth/sso/saml/error_codes.rb', line 18

def message(code)
  SAML_ERROR_CODES[BetterAuth::Plugins.normalize_key(code)]
end