refac
This commit is contained in:
1 parent
879abd7fee
commit
422d38fd11
2 files changed
+5
-1
No files matched your search
@@ -178,7 +178,11 @@ async def set_tool_servers_config(
|
||||
auth_type = connection.get("auth_type", "none")
|
||||
if auth_type == "oauth_2.1" and server_id:
|
||||
try:
|
||||
oauth_client_info = connection.get("info", {}).get(
|
||||
"oauth_client_info", ""
|
||||
)
|
||||
oauth_client_info = decrypt_data(oauth_client_info)
|
||||
|
||||
await request.app.state.oauth_client_manager.add_client(
|
||||
f"{server_type}:{server_id}",
|
||||
OAuthClientInformationFull(**oauth_client_info),
|
||||
|
||||
Reference in new issue
Block a user