How to Use Google Picker with Pipedream for Accessing User Data Not Created by My App?

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

@U05FUC30Q01
Hey guys I am using rest apis for connect url, pipedream connect proxy and invoking workflows. I have to update my google drive permission to drive.files, So I need to use now google picker to get access of users other data that was not created by my app. do you have any docs or guide for using google picker with pipedream, since pipedream is managing authentication for me. How can i use that, LMK
cc @U095D9MBG49

I think you’ll have to use a custom OAuth client for that, can you confirm? OAuth Clients - Pipedream

Yes, we are using custom oauth and able to use oauth consent screen with drive.files scope for drive and sheets on pipedream.

Sorry then I’m not sure I’m following your question

Hey @U02A06JPKEH
I think what Pradhumn’s asking is:

They already have a custom OAuth client in Pipedream with the drive.files scope working fine for Drive/Sheets API calls.

Now they want to add Google Picker API’s so the user can select files from Drive that user created, but they’d like to reuse the access token that Pipedream already manages instead of spinning up a separate OAuth flow just for Picker.

The question is basically: Is there a way to initialize Google Picker using the token from Pipedream’s managed auth, and if so, any docs or examples for that?

Thanks for the clarification ! In summary:
• Each app requires its own auth, so Google Picker would require a separate OAuth client and secret.
• We don’t have an integration for Google Picker, so it wouldn’t work natively with Pipedream. You can request it here

Hey , thanks for clarifying the need for separate OAuth clients and that Picker isn’t supported out-of-the-box.

Just to double-check:
• Is there any Pipedream API (let’s say, using the external_user_id) that can fetch the Google access token that Pipedream holds for a user, so I can pass it into the frontend for google.picker.setOAuthToken()?
If that’s a no, could you suggest any workable alternatives? I’m hoping to avoid forcing users to log in again with GIS if possible and managing their token there…
Thanks so much!

If you’re using your own OAuth client, then yes you can retrieve their access token from the /accounts API in Pipedream: Retrieve account - Pipedream

But I do not recommend returning that raw token to your frontend.

Thanks, ! Just wondering will picker support be added to Pipedream soon or will it take time?

I’m not sure how we’d support their file picker via API, are you envisioning we’d support it in our SDK? What does your ideal UX / DX look like?