This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-02-20 20:33:45 +00:00
|
|
|
"""passbook saml source exceptions"""
|
2020-02-20 20:37:14 +00:00
|
|
|
from passbook.lib.sentry import SentryIgnoredException
|
2020-02-20 20:33:45 +00:00
|
|
|
|
|
|
|
|
2020-02-20 20:37:14 +00:00
|
|
|
class MissingSAMLResponse(SentryIgnoredException):
|
2020-02-20 20:33:45 +00:00
|
|
|
"""Exception raised when request does not contain SAML Response."""
|
|
|
|
|
|
|
|
|
2020-02-20 20:37:14 +00:00
|
|
|
class UnsupportedNameIDFormat(SentryIgnoredException):
|
2020-02-20 20:33:45 +00:00
|
|
|
"""Exception raised when SAML Response contains NameID Format not supported."""
|
2020-09-11 22:53:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MismatchedRequestID(SentryIgnoredException):
|
|
|
|
"""Exception raised when the returned request ID doesn't match the saved ID."""
|
2020-11-12 21:31:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidSignature(SentryIgnoredException):
|
|
|
|
"""Signature of XML Object is either missing or invalid"""
|