diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-12-15 13:04:56 +0100 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-12-15 13:04:56 +0100 |
commit | cf577a42ca78d25000b2767b78f129f7cc39b48e (patch) | |
tree | 42c01d7b6af7c5590b2a0b3f9167b26671e1a2e5 /src/saml2/request.py | |
parent | 3d2fe2332ac1cead47b3e042de60ff305223d407 (diff) | |
download | pysaml2-cf577a42ca78d25000b2767b78f129f7cc39b48e.tar.gz |
Fixed making redirect signature work, cleaned up.
Diffstat (limited to 'src/saml2/request.py')
-rw-r--r-- | src/saml2/request.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/saml2/request.py b/src/saml2/request.py index 602a56f7..faa3077e 100644 --- a/src/saml2/request.py +++ b/src/saml2/request.py @@ -1,7 +1,7 @@ import logging from attribute_converter import to_local -from saml2 import time_util +from saml2 import time_util, BINDING_HTTP_REDIRECT from saml2.s_utils import OtherError from saml2.validate import valid_instance @@ -38,6 +38,9 @@ class Request(object): def _loads(self, xmldata, binding=None, origdoc=None, must=None, only_valid_cert=False): + if binding == BINDING_HTTP_REDIRECT: + pass + # own copy self.xmlstr = xmldata[:] logger.info("xmlstr: %s" % (self.xmlstr,)) @@ -87,8 +90,10 @@ class Request(object): assert self.issue_instant_ok() return self - def loads(self, xmldata, binding, origdoc=None, must=None, only_valid_cert=False): - return self._loads(xmldata, binding, origdoc, must, only_valid_cert=only_valid_cert) + def loads(self, xmldata, binding, origdoc=None, must=None, + only_valid_cert=False): + return self._loads(xmldata, binding, origdoc, must, + only_valid_cert=only_valid_cert) def verify(self): try: |