diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2021-05-18 00:52:40 +0300 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2021-05-18 00:52:40 +0300 |
commit | 71b53cf466207a78b1369cde3072bdf1a8897d49 (patch) | |
tree | 64e57dfc0a26d731593d6caaf7bb9cfafb92a91a | |
parent | 8f3b407999b928050c8499dbbaca522b9a50573f (diff) | |
download | pysaml2-71b53cf466207a78b1369cde3072bdf1a8897d49.tar.gz |
Set expected_binding for SLO from preferred_binding as configured
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r-- | src/saml2/client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/saml2/client.py b/src/saml2/client.py index 9133bcc3..fe4b20cc 100644 --- a/src/saml2/client.py +++ b/src/saml2/client.py @@ -251,6 +251,11 @@ class Saml2Client(Base): not_done = entity_ids[:] responses = {} + if expected_binding is None: + expected_binding = next( + iter(self.config.preferred_binding["single_logout_service"]), + None, + ) for entity_id in entity_ids: logger.debug("Logout from '%s'", entity_id) # for all where I can use the SOAP binding, do those first |