feat(oauth): add multi credentials support

This commit is contained in:
Harry
2025-07-04 14:25:33 +08:00
parent b316867bab
commit 9ce6f34dc4
6 changed files with 42 additions and 20 deletions

View File

@ -582,6 +582,11 @@ class AppDslService:
cls.encrypt_dataset_id(dataset_id=dataset_id, tenant_id=app_model.tenant_id)
for dataset_id in dataset_ids
]
# filter credential id from tool node
if node.get("data", {}).get("type", "") == NodeType.TOOL.value:
node["data"]["credential_id"] = None
export_data["workflow"] = workflow_dict
dependencies = cls._extract_dependencies_from_workflow(workflow)
export_data["dependencies"] = [