diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2021-11-22 02:52:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 02:52:12 +0200 |
commit | 72e69e43f555e3f37e8a21a89ac1f34402700a31 (patch) | |
tree | 5911d2e2663dcf22f5c6fdeb0985163b8d880797 /src/saml2/client.py | |
parent | 114999018035f64943900a0767a74b32943c1b72 (diff) | |
parent | 44d967d264609f12ab648d1c3be6e3a166185dcf (diff) | |
download | pysaml2-72e69e43f555e3f37e8a21a89ac1f34402700a31.tar.gz |
Merge pull request #834 from mheuwes/soap-fixes
Fix AttributeError and signature mangling during construction of SOAP request
Diffstat (limited to 'src/saml2/client.py')
-rw-r--r-- | src/saml2/client.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/saml2/client.py b/src/saml2/client.py index 5f82c6bc..e8642dfa 100644 --- a/src/saml2/client.py +++ b/src/saml2/client.py @@ -152,8 +152,8 @@ class Saml2Client(Base): # XXX ^through self.create_authn_request(...) # XXX - sign_redirect will add the signature to the query params # XXX ^through self.apply_binding(...) - sign_post = False if binding == BINDING_HTTP_REDIRECT else sign - sign_redirect = False if binding == BINDING_HTTP_POST and sign else sign + sign_redirect = sign and binding == BINDING_HTTP_REDIRECT + sign_post = sign and not sign_redirect reqid, request = self.create_authn_request( destination=destination, @@ -318,10 +318,8 @@ class Saml2Client(Base): session_indexes = None sign = sign if sign is not None else self.logout_requests_signed - sign_post = sign and ( - binding == BINDING_HTTP_POST or binding == BINDING_SOAP - ) sign_redirect = sign and binding == BINDING_HTTP_REDIRECT + sign_post = sign and not sign_redirect log_report = { "message": "Invoking SLO on entity", |