mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac: oauth client fallback
This commit is contained in:
parent
b98d8aa8ec
commit
82a16f1305
1 changed files with 11 additions and 4 deletions
|
|
@ -1933,10 +1933,17 @@ if len(app.state.config.TOOL_SERVER_CONNECTIONS) > 0:
|
|||
"oauth_client_info", ""
|
||||
)
|
||||
|
||||
try:
|
||||
oauth_client_info = decrypt_data(oauth_client_info)
|
||||
app.state.oauth_client_manager.add_client(
|
||||
f"mcp:{server_id}", OAuthClientInformationFull(**oauth_client_info)
|
||||
f"mcp:{server_id}",
|
||||
OAuthClientInformationFull(**oauth_client_info),
|
||||
)
|
||||
except Exception as e:
|
||||
log.error(
|
||||
f"Error adding OAuth client for MCP tool server {server_id}: {e}"
|
||||
)
|
||||
pass
|
||||
|
||||
try:
|
||||
if REDIS_URL:
|
||||
|
|
|
|||
Loading…
Reference in a new issue