Skip to content

Commit 71b53cf

Browse files
committed
Set expected_binding for SLO from preferred_binding as configured
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 8f3b407 commit 71b53cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/saml2/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ def do_logout(
251251
not_done = entity_ids[:]
252252
responses = {}
253253

254+
if expected_binding is None:
255+
expected_binding = next(
256+
iter(self.config.preferred_binding["single_logout_service"]),
257+
None,
258+
)
254259
for entity_id in entity_ids:
255260
logger.debug("Logout from '%s'", entity_id)
256261
# for all where I can use the SOAP binding, do those first

0 commit comments

Comments
 (0)