mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac: oidc provider url validation
This commit is contained in:
parent
a5683c411a
commit
451b614f4d
1 changed files with 1 additions and 1 deletions
|
|
@ -669,7 +669,7 @@ async def signout(request: Request, response: Response):
|
||||||
|
|
||||||
if ENABLE_OAUTH_SIGNUP.value:
|
if ENABLE_OAUTH_SIGNUP.value:
|
||||||
oauth_id_token = request.cookies.get("oauth_id_token")
|
oauth_id_token = request.cookies.get("oauth_id_token")
|
||||||
if oauth_id_token:
|
if oauth_id_token and OPENID_PROVIDER_URL.value:
|
||||||
try:
|
try:
|
||||||
async with ClientSession(trust_env=True) as session:
|
async with ClientSession(trust_env=True) as session:
|
||||||
async with session.get(OPENID_PROVIDER_URL.value) as resp:
|
async with session.get(OPENID_PROVIDER_URL.value) as resp:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue