We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
phunction
4 years agoHelpful | Level 5
Gettng a refresh token from GetAuthorizeUri
Hi, I am trying to convert my .net code (used for the old non expiring tokens) to get a refresh token. In this part: var authorizeUri = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Token, ...
- 4 years ago
phunction wrote:... Is there a way they can just authorize my app so I don't have to deal with the login part? ...
phunction take a look on the line where refresh token is referred to. Once you got to this token, next time you can skip actual login part and process directly the client creation. Owning the token keeps you (your application actually) logged in corresponding account, where you have logged in already before. 😉
Greg-DB may be a good idea new feature providing serialization/deserialization of current client tokens status. This would provide an easier way for managing most recent state (keep/restore). Is .NET SDK the only kit that missing this feature? 🤔
Здравко
4 years agoLegendary | Level 20
No, no,... That's not a setting either on your application in console or anything else. It's the workflow on authorization supported by Dropbox and selected by you eventually. As an example, again on the same file, take a look here. You can see example of PKCE usage. You have used something similar on initial authentication. 🤔 What actually? 🧐 That's it. 😉
Hope this clarifies matter.
phunction
4 years agoHelpful | Level 5
Interesting, I don't actually specify that, I am using whatever this uses:
DropboxOAuth2Helper.GetAuthorizeUri
But I have not been able to find what that is defaulting to.
Also, just to double check, once I have the refresh token, I just need to keep reusing that and it will not expire for a while?
- Greg-DB4 years ago
Dropbox Community Moderator
phunction You can find the default parameter values for GetAuthorizeUri in the documentation here.
And that's correct, you can re-use refresh tokens; refresh tokens don't expire by themselves (though they can be revoked by the app or user on demand).
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!