Files
authentik/authentik/sources/saml/exceptions.py
2021-06-17 12:22:40 +02:00

23 lines
652 B
Python

"""authentik saml source exceptions"""
from authentik.lib.sentry import SentryIgnoredException
class SAMLException(SentryIgnoredException):
"""Base SAML Exception"""
class MissingSAMLResponse(SAMLException):
"""Exception raised when request does not contain SAML Response."""
class UnsupportedNameIDFormat(SAMLException):
"""Exception raised when SAML Response contains NameID Format not supported."""
class MismatchedRequestID(SAMLException):
"""Exception raised when the returned request ID doesn't match the saved ID."""
class InvalidSignature(SAMLException):
"""Signature of XML Object is either missing or invalid"""