Selaa lähdekoodia

Merge pull request #10285 from the-c0d3br34k3r/issue8885_auth

fix: Fixed an issue with clearing application cookies during OAuth signout
Timothy Jaeryang Baek 2 kuukautta sitten
vanhempi
commit
886d756200
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      backend/open_webui/routers/auths.py

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

@@ -546,6 +546,7 @@ async def signout(request: Request, response: Response):
                             if logout_url:
                                 response.delete_cookie("oauth_id_token")
                                 return RedirectResponse(
+                                    headers=response.headers,
                                     url=f"{logout_url}?id_token_hint={oauth_id_token}"
                                 )
                         else: