Skip to content

Commit 59172fc

Browse files
committed
Enhance invalid document format info with reason
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 9f30f2f commit 59172fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/saml2/sigver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,7 @@ def _check_signature(self, decoded_xml, item, node_name=NODE_NAME, origdoc=None,
14961496
except XMLSchemaError as e:
14971497
error_context = {
14981498
"message": "Signature verification failed. Invalid document format.",
1499+
"reason": str(e),
14991500
"ID": item.id,
15001501
"issuer": _issuer,
15011502
"type": node_name,

0 commit comments

Comments
 (0)