diff options
author | Simo Sorce <simo@redhat.com> | 2014-04-14 18:38:45 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-04-15 20:21:50 -0400 |
commit | 57fb2baf9db87b0ca271dcbd9fde9ab69d8b1e46 (patch) | |
tree | 31ee0cad006cf6b61e9bc9abb34aeabf20574ac4 /ipsilon/providers/saml2 | |
parent | cc160379676d2cdede9339d169b10976613ebbbf (diff) | |
download | ipsilon-57fb2baf9db87b0ca271dcbd9fde9ab69d8b1e46.tar.gz ipsilon-57fb2baf9db87b0ca271dcbd9fde9ab69d8b1e46.tar.xz ipsilon-57fb2baf9db87b0ca271dcbd9fde9ab69d8b1e46.zip |
Fix NameId exception
Report what invalid name was used and fix exception on raising the exception on
line 129
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers/saml2')
-rwxr-xr-x | ipsilon/providers/saml2/provider.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipsilon/providers/saml2/provider.py b/ipsilon/providers/saml2/provider.py index b6ed4bf..c44c8b8 100755 --- a/ipsilon/providers/saml2/provider.py +++ b/ipsilon/providers/saml2/provider.py @@ -33,8 +33,8 @@ class InvalidProviderId(ProviderException): class NameIdNotAllowed(Exception): - def __init__(self): - message = 'The specified Name ID is not allowed' + def __init__(self, id): + message = 'Name ID [%s] is not allowed' % id super(NameIdNotAllowed, self).__init__(message) self.message = message |