Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(typing): validate OAuth code before processing access token (#18288)
Yeuoly8f547e63409e
diff --git a/api/controllers/console/auth/data_source_oauth.py b/api/controllers/console/auth/data_source_oauth.pyindex e911c9a5e5b..b4bd80fe2f0 100644--- a/api/controllers/console/auth/data_source_oauth.py+++ b/api/controllers/console/auth/data_source_oauth.py@@ -74,7 +74,9 @@ class OAuthDataSourceBinding(Resource):if not oauth_provider:return {"error": "Invalid provider"}, 400if "code" in request.args:- code = request.args.get("code")+ code = request.args.get("code", "")+ if not code:+ return {"error": "Invalid code"}, 400try:oauth_provider.get_access_token(code)except requests.exceptions.HTTPError as e: