Skip to content

Commit

Permalink
fix: return entity_id when multiple idps and mdq are defined in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sebulibah committed Mar 13, 2023
1 parent f4c8760 commit bb2ad03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/satosa/backends/saml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ def start_logout(self, context, internal_req, internal_authn_resp):
"""

entity_id = self.get_idp_entity_id(context)
if entity_id is None:
context.state[Context.KEY_FORCE_AUTHN] = get_force_authn(
context, self.config, self.sp.config
)
return self.disco_query(context)

return self.logout_request(context, entity_id, internal_authn_resp)

def disco_query(self, context):
Expand Down

0 comments on commit bb2ad03

Please sign in to comment.