summaryrefslogtreecommitdiff
path: root/src/saml2/request.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2013-01-22 12:19:12 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2013-01-22 12:19:12 +0100
commit97ecbd509b610be573752b2707d2df007efc2f24 (patch)
tree06a5e84ddcf0f9a0f3d90898a0d00428d6ed09cb /src/saml2/request.py
parentc35362abdcaf7bd6f854ba6b07f5ae1caaa7d204 (diff)
downloadpysaml2-97ecbd509b610be573752b2707d2df007efc2f24.tar.gz
Updated to follow the new API.
Fixed a cert in metadata handling problem
Diffstat (limited to 'src/saml2/request.py')
-rw-r--r--src/saml2/request.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/saml2/request.py b/src/saml2/request.py
index d0a5b0b2..c9600d1c 100644
--- a/src/saml2/request.py
+++ b/src/saml2/request.py
@@ -26,7 +26,8 @@ class Request(object):
self.message = None
self.not_on_or_after = 0
self.attribute_converters = attribute_converters
-
+ self.binding = None
+ self.relay_state = ""
self.signature_check = _dummy # has to be set !!!
def _clear(self):
@@ -35,15 +36,7 @@ class Request(object):
self.message = None
self.not_on_or_after = 0
- def _loads(self, xmldata, binding):
-# if binding == BINDING_HTTP_REDIRECT:
-# logger.debug("Expected to decode and inflate xml data")
-# decoded_xml = s_utils.decode_base64_and_inflate(xmldata)
-# elif binding == BINDING_HTTP_POST:
-# decoded_xml = base64.b64decode(xmldata)
-# else:
-# decoded_xml = xmldata
-
+ def _loads(self, xmldata, binding=None):
# own copy
self.xmlstr = xmldata[:]
logger.info("xmlstr: %s" % (self.xmlstr,))
@@ -122,7 +115,7 @@ class Request(object):
pass
def sender(self):
- return self.message.issuer.text()
+ return self.message.issuer.text
class LogoutRequest(Request):
msgtype = "logout_request"