Skip to content

Commit b63f82a

Browse files
author
Roland Hedberg
committed
Don't try to check the signature if there is no one there :-/
1 parent 1a3aab9 commit b63f82a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/saml2/response.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -758,12 +758,13 @@ def _assertion(self, assertion):
758758
else:
759759
logger.debug("signed")
760760

761-
try:
762-
self.sec.check_signature(assertion, class_name(assertion),
763-
self.xmlstr)
764-
except Exception as exc:
765-
logger.error("correctly_signed_response: %s" % exc)
766-
raise
761+
try:
762+
self.sec.check_signature(assertion, class_name(assertion),
763+
self.xmlstr)
764+
except Exception as exc:
765+
logger.error("correctly_signed_response: %s" % exc)
766+
raise
767+
767768
self.assertion = assertion
768769
logger.debug("assertion context: %s" % (self.context,))
769770
logger.debug("assertion keys: %s" % (assertion.keyswv()))

0 commit comments

Comments
 (0)