Browse Source

Merge pull request #15501 from Green-PT/fix-oauth-signout-redirect

fix: sign out redirect for oauth
Tim Jaeryang Baek 3 months ago
parent
commit
bdbc8f048c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/open_webui/routers/auths.py

+ 1 - 1
backend/open_webui/routers/auths.py

@@ -687,7 +687,7 @@ async def signout(request: Request, response: Response):
                                     status_code=200,
                                     content={
                                         "status": True,
-                                        "redirect_url": f"{logout_url}?id_token_hint={oauth_id_token}",
+                                        "redirect_url": f"{logout_url}?id_token_hint={oauth_id_token}" + (f"&post_logout_redirect_uri={WEBUI_AUTH_SIGNOUT_REDIRECT_URL}" if WEBUI_AUTH_SIGNOUT_REDIRECT_URL else ""),
                                     },
                                     headers=response.headers,
                                 )