diff options
| author | Hans Hörberg <haho0032@its-admins-MacBook-Pro.local> | 2013-04-16 08:48:54 +0200 |
|---|---|---|
| committer | Hans Hörberg <haho0032@its-admins-MacBook-Pro.local> | 2013-04-16 08:48:54 +0200 |
| commit | b2bdf7c5dabd6c1e2a6b1cb8b467f84c1f7436d6 (patch) | |
| tree | 1d63340c7da6ab924aa95f1012cb765e7940ac57 /src/saml2/request.py | |
| parent | befb8f746a16f9cde7d12b3ad454acca439a19e8 (diff) | |
| download | pysaml2-b2bdf7c5dabd6c1e2a6b1cb8b467f84c1f7436d6.tar.gz | |
Prepare sign and ecp verify sign for soap.
Added functionality to prepare signature for a authn request, without
signing. This makes it possible to sign the authn request within a SOAP
message instead. To verify a authn request in a ecp it have to validate
the whole SOAP message and not just the authn request. Added logic to
sen the original xml document to the validation function.
Diffstat (limited to 'src/saml2/request.py')
| -rw-r--r-- | src/saml2/request.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/saml2/request.py b/src/saml2/request.py index 96a66c94..0df0d24c 100644 --- a/src/saml2/request.py +++ b/src/saml2/request.py @@ -36,12 +36,12 @@ class Request(object): self.message = None self.not_on_or_after = 0 - def _loads(self, xmldata, binding=None): + def _loads(self, xmldata, binding=None, origdoc=None): # own copy self.xmlstr = xmldata[:] logger.info("xmlstr: %s" % (self.xmlstr,)) try: - self.message = self.signature_check(xmldata) + self.message = self.signature_check(xmldata, origdoc=origdoc) except TypeError: raise except Exception, excp: @@ -84,8 +84,8 @@ class Request(object): assert self.issue_instant_ok() return self - def loads(self, xmldata, binding): - return self._loads(xmldata, binding) + def loads(self, xmldata, binding, origdoc=None): + return self._loads(xmldata, binding, origdoc) def verify(self): try: |
