diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-01-13 18:14:27 +0100 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-01-13 18:14:27 +0100 |
commit | fdc0555c418f7d223d4ba7f5a69f6e6c6382f6f6 (patch) | |
tree | 9f5b2f3cd554cb560f7bb24988d05d61392c33c9 /src/saml2/request.py | |
parent | cb40903ef1bfcd93387dd335fdf4a796d0626166 (diff) | |
download | pysaml2-fdc0555c418f7d223d4ba7f5a69f6e6c6382f6f6.tar.gz |
Use the same naming format everywhere.
New entity method allowed for refactoring.
Diffstat (limited to 'src/saml2/request.py')
-rw-r--r-- | src/saml2/request.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/saml2/request.py b/src/saml2/request.py index d365f881..550c8038 100644 --- a/src/saml2/request.py +++ b/src/saml2/request.py @@ -36,19 +36,19 @@ class Request(object): 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 +# 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 # own copy - self.xmlstr = decoded_xml[:] + self.xmlstr = xmldata[:] logger.info("xmlstr: %s" % (self.xmlstr,)) try: - self.message = self.signature_check(decoded_xml) + self.message = self.signature_check(xmldata) except TypeError: raise except Exception, excp: @@ -56,7 +56,7 @@ class Request(object): if not self.message: logger.error("Response was not correctly signed") - logger.info(decoded_xml) + logger.info(xmldata) raise IncorrectlySigned() logger.info("request: %s" % (self.message,)) @@ -178,5 +178,5 @@ class NameIDMappingRequest(Request): timeslack=0): Request.__init__(self, sec_context, receiver_addrs, attribute_converters, timeslack) - self.signature_check = self.sec.correctly_signed_nameid_mapping_request + self.signature_check = self.sec.correctly_signed_name_id_mapping_request |