summaryrefslogtreecommitdiffstats
path: root/ipsilon/providers/saml2/auth.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2015-04-29 13:57:34 -0400
committerSimo Sorce <simo@redhat.com>2015-05-05 14:32:24 -0400
commit158c4cdefc0bd5b8dabe38685c1bebccc24d656b (patch)
treeec4a177cfb380a7cf1df77ffd5d5e4d783997bba /ipsilon/providers/saml2/auth.py
parentf54958e7101614a64d2dceb18b46d68a88130506 (diff)
downloadipsilon.git-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.tar.gz
ipsilon.git-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.tar.xz
ipsilon.git-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.zip
Drop usage of self._debug and use self.debug instead
This method was deprecated but still used in a lot of places. https://fedorahosted.org/ipsilon/ticket/120 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers/saml2/auth.py')
-rw-r--r--ipsilon/providers/saml2/auth.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ipsilon/providers/saml2/auth.py b/ipsilon/providers/saml2/auth.py
index 521e0c0..b2c9549 100644
--- a/ipsilon/providers/saml2/auth.py
+++ b/ipsilon/providers/saml2/auth.py
@@ -35,7 +35,7 @@ class UnknownProvider(ProviderException):
def __init__(self, message):
super(UnknownProvider, self).__init__(message)
- self._debug(message)
+ self.debug(message)
class AuthenticateRequest(ProviderPageBase):
@@ -95,7 +95,7 @@ class AuthenticateRequest(ProviderPageBase):
e, message)
raise UnknownProvider(msg)
- self._debug('SP %s requested authentication' % login.remoteProviderId)
+ self.debug('SP %s requested authentication' % login.remoteProviderId)
return login
@@ -108,13 +108,13 @@ class AuthenticateRequest(ProviderPageBase):
try:
login = self._parse_request(request)
except InvalidRequest, e:
- self._debug(str(e))
+ self.debug(str(e))
raise cherrypy.HTTPError(400, 'Invalid SAML request token')
except UnknownProvider, e:
- self._debug(str(e))
+ self.debug(str(e))
raise cherrypy.HTTPError(400, 'Unknown Service Provider')
except Exception, e: # pylint: disable=broad-except
- self._debug(str(e))
+ self.debug(str(e))
raise cherrypy.HTTPError(500)
return login
@@ -305,7 +305,7 @@ class AuthenticateRequest(ProviderPageBase):
raise cherrypy.HTTPError(501)
elif login.protocolProfile == lasso.LOGIN_PROTOCOL_PROFILE_BRWS_POST:
login.buildAuthnResponseMsg()
- self._debug('POSTing back to SP [%s]' % (login.msgUrl))
+ self.debug('POSTing back to SP [%s]' % (login.msgUrl))
context = {
"title": 'Redirecting back to the web application',
"action": login.msgUrl,