From 106fdb26ae92ad863c88a57c19f617910d6c2346 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Tue, 27 Oct 2009 09:05:01 +0100 Subject: [PATCH] More log info --- src/saml2/sigver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/saml2/sigver.py b/src/saml2/sigver.py index 54fc78a..72b4f9b 100644 --- a/src/saml2/sigver.py +++ b/src/saml2/sigver.py @@ -76,7 +76,7 @@ def _parse_popen_output(output): return False def correctly_signed_response(decoded_xml, xmlsec_binary=XMLSEC_BINARY, - metadata=None): + metadata=None, log=None): """ Check if a response is correctly signed, if we have metadata for the IdP that sent the info use that, if not use the key that are in the message if any. @@ -90,6 +90,7 @@ def correctly_signed_response(decoded_xml, xmlsec_binary=XMLSEC_BINARY, """ if not xmlsec_binary: xmlsec_binary = XMLSEC_BINARY + log and log.info("Decoded response: %s" % decoded_xml) response = samlp.response_from_string(decoded_xml) verified = False