Can We Share a Link for Non-Users to Connect and OAuth Account in Our Pipedream Account?

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

Hey all, is there a way for us to share a link to have a client that is not a user in our pipedream account connect and oauth account? ex: i share a link, they connect their google account, our pipedream account now has oauth access to their google account?

To achieve the functionality where a client, who is not a user in your Pipedream account, can connect their Google account and grant OAuth access to your Pipedream account, you can use Pipedream’s connected accounts feature. However, Pipedream does not natively support sharing a link for external users to connect their accounts directly to your Pipedream account. Here are some steps you might consider: 1. Create a Custom OAuth Flow: You can create a custom OAuth flow using a web application where the client can authenticate their Google account. This application would handle the OAuth process and store the access tokens securely. 2. Use Pipedream’s External Auth: If you manage credentials in a database or an existing secrets store, you can pass those credentials to Pipedream at runtime using Pipedream’s external auth feature. This way, you can manage the OAuth tokens outside of Pipedream and use them in your workflows. 3. API Integration: Build an API that your clients can call to initiate the OAuth process. Once they authenticate, your API can securely store the OAuth tokens and use them within your Pipedream workflows. For more details on managing connected accounts and using external authentication, you can refer to the following documentation: - Connected Accounts - External Auth If you need further assistance or have specific requirements, you might want to reach out to Pipedream support at Support - Pipedream.

It depends on your use case. Are you wanting to just use a specific connected account from your client in a workflow, just like any other connected account?

Or are you wanting to run a single workflow and specify the user / connected account dynamically at runtime?

for right now i’m just looking to have the client connect their account and i will manually set up a workflow for each

Yea that isn’t exactly supported today, but the use case has come up before. However, you could achieve this using a single workflow via Connect Link and running workflows on behalf of users

would this use case be possible?
Or are you wanting to run a single workflow and specify the user / connected account dynamically at runtime?

Yea, that’s the docs I linked above

We’re about the announce it publicly, probably today

oh noice!

y’all are too quick XD

i tried creating a connect token, but for some reason i am getting the response “unauthorized” even though i just created the oauth client and secret for my pipedream account and verified it was correct

here’s a quick loom: Slack - help (Channel) - Pipedream Users - 1 new item - Slack - 5 December 2024 | Loom

Oh shoot I have a feeling the example in that workflow is old and needs to be updated

Will look at that asap

Check this out in the meantime, since you’re talking about a small number of “end. users” / clients, you might not actually need to do any backend work to generate the token and Connect Link URL: GitHub

You might be able to just generate the URLs from the UI and share those out, then trigger the workflow w/ the appropriate user ID

Oh yes that’s quite old code, sorry about that and thanks for catching!

Updating now

Try this Sign Up - Pipedream