chore: change the redirect url

This commit is contained in:
Novice
2025-06-23 14:10:18 +08:00
parent b5b5d7493d
commit 5f6f02350e
3 changed files with 9 additions and 4 deletions

View File

@ -767,8 +767,8 @@ class ToolMCPCallbackApi(Resource):
args = parser.parse_args()
state_key = args["state"]
authorization_code = args["code"]
full_state_data = handle_callback(state_key, authorization_code)
return redirect(f"{dify_config.CONSOLE_WEB_URL}/tools?mcp_provider_id={full_state_data.provider_id}")
handle_callback(state_key, authorization_code)
return redirect(f"{dify_config.CONSOLE_WEB_URL}/oauth-callback")
# tool provider