From b3a8dbe2f5853d233e693cbb435897f076dd87f5 Mon Sep 17 00:00:00 2001 From: Harry Date: Mon, 23 Jun 2025 11:20:54 +0800 Subject: [PATCH] fix: typo --- .../tools/builtin_tools_manage_service.py | 3 +-- api/tool_oauth.http | 27 ------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 api/tool_oauth.http diff --git a/api/services/tools/builtin_tools_manage_service.py b/api/services/tools/builtin_tools_manage_service.py index 25d927f9f9..31bc2e650d 100644 --- a/api/services/tools/builtin_tools_manage_service.py +++ b/api/services/tools/builtin_tools_manage_service.py @@ -136,8 +136,7 @@ class BuiltinToolManageService: ) # Decrypt and restore original credentials for masked values - credentials = BuiltinToolManageService._dec - rypt_and_restore_credentials( + credentials = BuiltinToolManageService._decrypt_and_restore_credentials( provider_controller, tool_configuration, provider, credentials ) diff --git a/api/tool_oauth.http b/api/tool_oauth.http deleted file mode 100644 index 9915472d03..0000000000 --- a/api/tool_oauth.http +++ /dev/null @@ -1,27 +0,0 @@ - -@accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiYjM4Y2Y5N2MtODNiYS00MWI3LWEyZjMtMzZlOTgzZjE4YmQ5IiwiZXhwIjoxNzUwNDE3NDI0LCJpc3MiOiJTRUxGX0hPU1RFRCIsInN1YiI6IkNvbnNvbGUgQVBJIFBhc3Nwb3J0In0.pPCkISnSmnu3hOCyEVTIJoNeWxtx7E9LNy0cDQUy__Q - - - -# set default credential -POST /console/api/workspaces/current/tool-provider/builtin/langgenius/github/github/set-default -Host: 127.0.0.1:5001 -Content-Type: application/json -Authorization: Bearer {{accessToken}} - -{ - "id": "55fb78d2-0ce6-4496-9488-3b8d9f40818f" -} -### - -# get oauth url -GET /console/api/oauth/plugin/tool?plugin_id=c58a1845-f3a4-4d93-b749-a71e9998b702/github&provider=github -Host: 127.0.0.1:5001 -Authorization: Bearer {{accessToken}} - -### - -# get oauth token -GET /console/api/oauth/plugin/tool/callback?state=734072c2-d8ed-4b0b-8ed8-4efd69d15a4f&code=e2d68a6216a3b7d70d2f&state=NQCjFkMKtf32XCMHc8KBdw -Host: 127.0.0.1:5001 -Authorization: Bearer {{accessToken}}