From b7c27f28617f6fb22491f23130669bcb302d8f34 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 7 Oct 2014 11:00:37 -0400 Subject: Move some exceptions into provider.common These are generically useful and can be rused as they are by other providers. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- ipsilon/providers/saml2/auth.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'ipsilon/providers/saml2/auth.py') diff --git a/ipsilon/providers/saml2/auth.py b/ipsilon/providers/saml2/auth.py index 861ef96..cbfeaaa 100755 --- a/ipsilon/providers/saml2/auth.py +++ b/ipsilon/providers/saml2/auth.py @@ -18,6 +18,7 @@ # along with this program. If not, see . from ipsilon.providers.common import ProviderPageBase, ProviderException +from ipsilon.providers.common import AuthenticationError, InvalidRequest from ipsilon.providers.saml2.provider import ServiceProvider from ipsilon.providers.saml2.provider import InvalidProviderId from ipsilon.providers.saml2.provider import NameIdNotAllowed @@ -28,21 +29,6 @@ import datetime import lasso -class AuthenticationError(ProviderException): - - def __init__(self, message, code): - super(AuthenticationError, self).__init__(message) - self.code = code - self._debug('%s [%s]' % (message, code)) - - -class InvalidRequest(ProviderException): - - def __init__(self, message): - super(InvalidRequest, self).__init__(message) - self._debug(message) - - class UnknownProvider(ProviderException): def __init__(self, message): -- cgit