We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffae695 commit 8f3b407Copy full SHA for 8f3b407
src/saml2/client.py
@@ -281,8 +281,10 @@ def do_logout(
281
session_indexes = None
282
283
sign = sign if sign is not None else self.logout_requests_signed
284
- sign_post = False if binding == BINDING_HTTP_REDIRECT else sign
285
- sign_redirect = False if binding == BINDING_HTTP_POST and sign else sign
+ sign_post = sign and (
+ binding == BINDING_HTTP_POST or binding == BINDING_SOAP
286
+ )
287
+ sign_redirect = sign and binding == BINDING_HTTP_REDIRECT
288
289
req_id, request = self.create_logout_request(
290
destination,
0 commit comments