From edc3c37abb140a7c2154c70a2331093ce71513ea Mon Sep 17 00:00:00 2001 From: gluap Date: Fri, 19 May 2023 11:29:15 +0200 Subject: [PATCH] fix openid logout (wasn't working with old keycloak anyhow, but this works at least with new keycloak) --- api/obs/api/routes/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/obs/api/routes/login.py b/api/obs/api/routes/login.py index 1c4e80a..53ef8a1 100644 --- a/api/obs/api/routes/login.py +++ b/api/obs/api/routes/login.py @@ -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")