Skip to content

Commit

Permalink
If timestamp is not listed in sp, don't sign
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Sep 21, 2024
1 parent 74526d1 commit 251abff
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/zeep/wsse/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,7 @@ def _signature_prepare(envelope, key, signature_method, digest_method, signature
# Perform the actual signing.
ctx = xmlsec.SignatureContext()
ctx.key = key
# Sign default elements if present
timestamp = security.find(QName(ns.WSU, "Timestamp"))
if timestamp != None:
_sign_node(ctx, signature, timestamp, digest_method)

# Sign extra elements defined in WSDL
# Sign elements defined in WSDL
if signatures is not None:
if signatures["body"] or signatures["everything"]:
_sign_node(
Expand Down

0 comments on commit 251abff

Please sign in to comment.