Skip to content

Commit bb2ad03

Browse files
committed
fix: return entity_id when multiple idps and mdq are defined in metadata
1 parent f4c8760 commit bb2ad03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/satosa/backends/saml2.py

+6
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ def start_logout(self, context, internal_req, internal_authn_resp):
208208
"""
209209

210210
entity_id = self.get_idp_entity_id(context)
211+
if entity_id is None:
212+
context.state[Context.KEY_FORCE_AUTHN] = get_force_authn(
213+
context, self.config, self.sp.config
214+
)
215+
return self.disco_query(context)
216+
211217
return self.logout_request(context, entity_id, internal_authn_resp)
212218

213219
def disco_query(self, context):

0 commit comments

Comments
 (0)