mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix signout redirect for oauth
This commit is contained in:
@@ -687,7 +687,7 @@ async def signout(request: Request, response: Response):
|
|||||||
status_code=200,
|
status_code=200,
|
||||||
content={
|
content={
|
||||||
"status": True,
|
"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,
|
headers=response.headers,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user