fix openid logout (wasn't working with old keycloak anyhow, but this works at least with new keycloak)

This commit is contained in:
gluap 2023-05-19 11:29:15 +02:00
parent 41ce56ac09
commit edc3c37abb
No known key found for this signature in database

View file

@ -170,4 +170,4 @@ async def logout(req):
auth_req = client.construct_EndSessionRequest(state=session["state"])
logout_url = auth_req.request(client.end_session_endpoint)
return redirect(logout_url + f"&redirect_uri={req.ctx.api_url}/logout")
return redirect(logout_url + f"&post_logout_redirect_uri={req.ctx.api_url}/logout")