authentik.common.saml.exceptions
Common SAML Exceptions
1"""Common SAML Exceptions""" 2 3from django.utils.functional import Promise 4from django.utils.translation import gettext_lazy as _ 5 6from authentik.lib.tracing.exceptions import TracingIgnoredException 7 8ERROR_CANNOT_DECODE_REQUEST = _("Cannot decode SAML request.") 9ERROR_SIGNATURE_REQUIRED_BUT_ABSENT = _( 10 "Verification Certificate configured, but request is not signed." 11) 12ERROR_FAILED_TO_VERIFY = _("Failed to verify signature") 13ERROR_ACS_URL_MISMATCH = _( 14 "The ACS URL in the request does not match the ACS URL configured on the provider." 15) 16 17 18class CannotHandleAssertion(TracingIgnoredException): 19 """This processor does not handle this assertion. 20 21 `message` is shown to the user and must not contain request contents or internals. 22 `detail` is only logged and recorded in events for administrators; pass the underlying 23 exception when there is one.""" 24 25 def __init__(self, message: str | Promise, detail: str | Promise | Exception | None = None): 26 super().__init__(message) 27 self.detail = detail
ERROR_CANNOT_DECODE_REQUEST =
'Cannot decode SAML request.'
ERROR_SIGNATURE_REQUIRED_BUT_ABSENT =
'Verification Certificate configured, but request is not signed.'
ERROR_FAILED_TO_VERIFY =
'Failed to verify signature'
ERROR_ACS_URL_MISMATCH =
'The ACS URL in the request does not match the ACS URL configured on the provider.'
19class CannotHandleAssertion(TracingIgnoredException): 20 """This processor does not handle this assertion. 21 22 `message` is shown to the user and must not contain request contents or internals. 23 `detail` is only logged and recorded in events for administrators; pass the underlying 24 exception when there is one.""" 25 26 def __init__(self, message: str | Promise, detail: str | Promise | Exception | None = None): 27 super().__init__(message) 28 self.detail = detail
This processor does not handle this assertion.
message is shown to the user and must not contain request contents or internals.
detail is only logged and recorded in events for administrators; pass the underlying
exception when there is one.