Dynamic workflow with per user authentication

Hi @yonatan1

We don’t have a target release date for this, but this is on our roadmap. For now, I’ll share some workarounds. You’ll notice when you auth into any Pipedream app, we are considered the app “owner”. This means you have to authorize your account on https://pipedream.com within the product - you can’t have your own end users auth into that Pipedream app from your own application.

We recommend Pizzly for these kind of scenarios. That lets you manage apps for your own users. Pizzly provides a way to let users auth into your own Slack / Quickbooks / etc. apps, and generates OAuth access tokens for those users automatically. Then you’d essentially have a database of users / auth tokens for each service.

Pipedream doesn’t have a mechanism to run workflows automatically for all your users on specific events, but you can trigger Pipedream workflows on HTTP requests or whatever events you want, e.g. when an event happens in your system and you want to run a workflow for a user:

  1. If you need to connect to e.g. Slack within a workflow, you would look up the current access token for your user, for Slack, in Pizzly.
  2. Send an HTTP request to an HTTP-triggered workflow, including the Slack access token for that user in the request
  3. Make a request to the Slack API on behalf of the user

Hope this helps!