mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac: pass token_endpoint_auth_method
This commit is contained in:
@@ -381,9 +381,20 @@ class OAuthClientManager:
|
|||||||
"name": client_id,
|
"name": client_id,
|
||||||
"client_id": oauth_client_info.client_id,
|
"client_id": oauth_client_info.client_id,
|
||||||
"client_secret": oauth_client_info.client_secret,
|
"client_secret": oauth_client_info.client_secret,
|
||||||
"client_kwargs": (
|
"client_kwargs": {
|
||||||
{"scope": oauth_client_info.scope} if oauth_client_info.scope else {}
|
**(
|
||||||
),
|
{"scope": oauth_client_info.scope}
|
||||||
|
if oauth_client_info.scope
|
||||||
|
else {}
|
||||||
|
),
|
||||||
|
**(
|
||||||
|
{
|
||||||
|
"token_endpoint_auth_method": oauth_client_info.token_endpoint_auth_method
|
||||||
|
}
|
||||||
|
if oauth_client_info.token_endpoint_auth_method
|
||||||
|
else {}
|
||||||
|
),
|
||||||
|
},
|
||||||
"server_metadata_url": (
|
"server_metadata_url": (
|
||||||
oauth_client_info.issuer if oauth_client_info.issuer else None
|
oauth_client_info.issuer if oauth_client_info.issuer else None
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user