This topic was automatically generated from Slack. You can find the original thread here.
Greetings,
I’m wondering if anyone knows if there’s a way to implement a method using the Pipedream url’s that would enable a Dropbox access token to be refreshed.
I would execute a Pipedream url, that would then using axios send an OAuth token request to Dropbox and then capture the refresh token on the redirect url. I’ve been successful only in getting the html file on the return that requires a user intervention to retrieve and use the authorization code.
Dropbox’s access tokens are short lived and need to be refreshed. I’ve been having a difficult experience with these OAuth routines.
Since Pipedream does all of this OAuth stuff in the background, which is truly convenient, I’m needing a way to update the access tokens so that when they expire, I can quickly refresh the token.
They don’t appear to work very well unless you’re running an html file to accept the redirect. The challenge is, that I’m running my Dropbox api’s within a web worker, and don’t have direct access to the html of the app. When the access token for the Dropbox app expires, it requires a direct user intervention in order to obtain an authorization code, which then needs to be copied and pasted into the api to continue running. Pipedream seems to have resolved this problem, and I was wondering if these methods for updating an access token might be available.
In fact, it really wouldn’t be necessary to perform any type of routine on my end in the web worker, if I could just make an api call via Pipedream, and allow Pipedream/Dropbox api connection to provide the access token for my Dropbox app. A Pipedream trigger url might be able to act as the redirect_uri, that way everything would be able remain secure via Pipedream, and simply return the access token which is short lived, for about 4 hours.
Thanks,
Scott.