Fixed a bug happening during RP initiated logout on clients without post_logout_redirect_uri defined

This commit is contained in:
Éloi Rivard 2022-10-26 18:09:02 +02:00
parent 6facd248a9
commit fdb8714094
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,8 @@ Fixed
- Fixed a bug on the contacts field in the admin client form following
the LDAP schema update of 0.0.12
- Fixed a bug happening during RP initiated logout on clients without
`post_logout_redirect_uri` defined.
[0.0.12] - 2022-10-24
=====================

View file

@ -310,7 +310,7 @@ def end_session():
for client_id in client_ids:
client = Client.get(client_id)
if client:
valid_uris.extend(client.post_logout_redirect_uris)
valid_uris.extend(client.post_logout_redirect_uris or [])
if user.uid[0] != id_token["sub"] and not session.get(
"end_session_confirmation"