diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-05-16 19:12:14 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-05-16 19:12:14 +0200 |
commit | b63f82a1cc8ab096736411100e5650bf4cd41267 (patch) | |
tree | 3014d8dc7c8411d16b9ac095cf4dea0fc24c5fcb /src/saml2 | |
parent | 1a3aab9f6020c93effe807034f67f45482623f46 (diff) | |
download | pysaml2-b63f82a1cc8ab096736411100e5650bf4cd41267.tar.gz |
Don't try to check the signature if there is no one there :-/
Diffstat (limited to 'src/saml2')
-rw-r--r-- | src/saml2/response.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py index 9194a475..64c16e78 100644 --- a/src/saml2/response.py +++ b/src/saml2/response.py @@ -758,12 +758,13 @@ class AuthnResponse(StatusResponse): else: logger.debug("signed") - try: - self.sec.check_signature(assertion, class_name(assertion), - self.xmlstr) - except Exception as exc: - logger.error("correctly_signed_response: %s" % exc) - raise + try: + self.sec.check_signature(assertion, class_name(assertion), + self.xmlstr) + except Exception as exc: + logger.error("correctly_signed_response: %s" % exc) + raise + self.assertion = assertion logger.debug("assertion context: %s" % (self.context,)) logger.debug("assertion keys: %s" % (assertion.keyswv())) |