Browse Source

Merge pull request #16396 from andrewbbaek/dev

refac: oidc provider url validation
Tim Jaeryang Baek 2 tháng trước cách đây
mục cha
commit
ea215aa8c2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backend/open_webui/routers/auths.py

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

@@ -669,7 +669,7 @@ async def signout(request: Request, response: Response):
 
     if ENABLE_OAUTH_SIGNUP.value:
         oauth_id_token = request.cookies.get("oauth_id_token")
-        if oauth_id_token:
+        if oauth_id_token and OPENID_PROVIDER_URL.value:
             try:
                 async with ClientSession(trust_env=True) as session:
                     async with session.get(OPENID_PROVIDER_URL.value) as resp: