This commit is contained in:
Timothy Jaeryang Baek
2026-06-22 14:42:23 +02:00
parent 928eb015bd
commit 88901bfa04
3 changed files with 49 additions and 2 deletions
+4
View File
@@ -228,6 +228,7 @@ from open_webui.utils.oauth import (
encrypt_data,
get_oauth_client_info_with_dynamic_client_registration,
get_oauth_client_info_with_static_credentials,
recover_static_oauth_client_metadata,
resolve_oauth_client_info,
)
from open_webui.utils.plugin import install_tool_and_function_dependencies
@@ -535,6 +536,9 @@ async def initialize_runtime_config(app: FastAPI):
if server_id and auth_type in ('oauth_2.1', 'oauth_2.1_static'):
try:
oauth_client_info = resolve_oauth_client_info(tool_server_connection)
oauth_client_info = await recover_static_oauth_client_metadata(
tool_server_connection, oauth_client_info
)
app.state.oauth_client_manager.add_client(
f'mcp:{server_id}',
OAuthClientInformationFull(**oauth_client_info),