Is there a way to allow end users of my application to configure credentials in Pipedream?

This topic was automatically generated from Slack. You can find the original thread here.

Morris Clay : Hi community, i am new to pipedream and was wondering if it is possible to securely connect accounts via code when i have the api credentials in the application which calls pipedream workflows but not in pipedream yet. The use case would be: “user enters credentials ui; user triggers workflow & send the credentials in the request; the workflow connects to the service with the given user credentials”. Is there some example code for this existing? Thank you for your help!

Dylan Sather (Pipedream) : Hi , can you tell me more about the apps that you’d like to do this for? Is the user entering an API key on your end, or are they authorizing your access to their account via OAuth?

If you can share the names of the apps, that might help us better understand the use case, as well.

Morris Clay : in an ideal case the users would only need to enter api keys. the current stack would be convertkit, discord, figma, github, trello, typeform, stripe

Dylan Sather (Pipedream) : Gotcha thanks. In the case in which the app’s API required an OAuth integration, or where that was preferred (like GitHub), would you expect to create an OAuth app for your company that users would auth into, and then would you want access to their current access token in the Pipedream workflow? We’re tracking that here.

Re: apps with API keys, there are a variety of ways you could configure that in Pipedream. You could pass the API key from your side in an HTTP request (for example), or retrieve them from a database query / API call from within your workflow. Since you can run any Node code within a workflow, you have a number of options.

Morris Clay : awesome thanks for your help & way to go. pipedream looks like a great solution - i’m sure to dive in more

Dylan Sather (Pipedream) : great. Definitely let us know if you have more questions about this setup. We’d love to assist however we can.