mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix: oauth refresh server metadata
This commit is contained in:
parent
f25a144e09
commit
651f385ba5
1 changed files with 2 additions and 1 deletions
|
|
@ -252,9 +252,10 @@ class OAuthManager:
|
|||
log.error(f"No OAuth client found for provider {provider}")
|
||||
return None
|
||||
|
||||
server_metadata_url = self.get_server_metadata_url(provider)
|
||||
token_endpoint = None
|
||||
async with aiohttp.ClientSession(trust_env=True) as session_http:
|
||||
async with session_http.get(client.gserver_metadata_url) as r:
|
||||
async with session_http.get(server_metadata_url) as r:
|
||||
if r.status == 200:
|
||||
openid_data = await r.json()
|
||||
token_endpoint = openid_data.get("token_endpoint")
|
||||
|
|
|
|||
Loading…
Reference in a new issue