From c43f95f4b8d8cb723e0d1a9dfdfab5ac3b54da7c Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 13 Nov 2025 15:34:45 -0500 Subject: [PATCH] refac: pass token_endpoint_auth_method --- backend/open_webui/utils/oauth.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index f5b96e99d6..58aa8edf89 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -381,9 +381,20 @@ class OAuthClientManager: "name": client_id, "client_id": oauth_client_info.client_id, "client_secret": oauth_client_info.client_secret, - "client_kwargs": ( - {"scope": oauth_client_info.scope} if oauth_client_info.scope else {} - ), + "client_kwargs": { + **( + {"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": ( oauth_client_info.issuer if oauth_client_info.issuer else None ),