Select credentials via expression

Not entirely sure this is exactly the same thing I’m looking for, but it’s similar enough that I think it goes under the same banner, and could be solved by the same feature.

In a workflow where there are numerous calls to a service that ALL use the same credential item, it would be very useful to be able to set a credential name in one place (e.g. Edit Fields (Set) node) and have all the “credential bearing” nodes pick up their credential settings from an expression referring to that “workflow-global” value. Currently I have found no way to modify the credential references in multiple nodes within a single workflow without opening each node separately and changing the credential selections manually one by one.

Wondering if it might be possible, as an alternative to re-working every credential-bearing node type to support expressions, to implement a new “Credential-Set” node, that could be added early in a workflow, which would provide workflow-local aliases for a handful of system credential items. If that were to inject “local” credential items (proxies) into scope for the remainder of the workflow execution, maybe the nodes using the credentials, especially specific-node-type credentials items like “Spotify OAuth2 API” wouldn’t even know the difference. Also, the “Credential-Set” node could support expressions to select a system credential item on behalf of all the other node types.

5 Likes