Exceptions

All the SAML-specific exceptions this library can throw.

exception flask_saml2.exceptions.SAML2Exception

Base exception for all flask_saml2 exceptions.

exception flask_saml2.exceptions.MessageException(msg)

An exception with a nicely formatted error message.

exception flask_saml2.exceptions.CannotHandleAssertion(msg)

This SP or IdP handler can not handle this assertion.

exception flask_saml2.exceptions.UserNotAuthorized(msg)

User not authorized for SAML 2.0 authentication.

exception flask_saml2.exceptions.ImproperlyConfigured(msg)

Someone done goofed when configuring this application.