Merge pull request #16396 from andrewbbaek/dev

refac: oidc provider url validation
This commit is contained in:
Tim Jaeryang Baek 2025-08-09 00:21:13 +04:00 committed by GitHub
commit ea215aa8c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: