Skip to content

Commit

Permalink
fix: handle case where entity_id is None in start_logout
Browse files Browse the repository at this point in the history
  • Loading branch information
sebulibah committed Mar 14, 2023
1 parent f4c8760 commit 6358ade
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/satosa/backends/saml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,14 @@ def start_logout(self, context, internal_req, internal_authn_resp):
:type context: satosa.context.Context
:type internal_req: satosa.internal.InternalData
:rtype:
:rtype: satosa.response.Response
"""

entity_id = self.get_idp_entity_id(context)
entity_id = internal_authn_resp["auth_info"]["issuer"]
if entity_id is None:
message = "Logout Failed"
status = "500 FAILED"
return Response(message=message, status=status)
return self.logout_request(context, entity_id, internal_authn_resp)

def disco_query(self, context):
Expand Down

0 comments on commit 6358ade

Please sign in to comment.