You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
salven
7 years agoHelpful | Level 6
API secret in dropbox.oauth.DropboxOAuth2FlowNoRedirect and redistribution
Hi, I am writing a simple app in the form of a python script which follows the OAuth2 procedure for the user to link and use their own account. Now, the DropboxOAuth2FlowNoRedirect() method require...
- 7 years ago
The Dropbox OAuth 2 app authorization implementation supports two different flows:
- the "code" flow: this flow requires both the app key and secret
- the "token" flow: this flow only requires the app keyThe `DropboxOAuth2FlowNoRedirect` class in the Dropbox Python SDK uses the "code" flow, so it requires the app key and secret.
The Python SDK doesn't implement the "token" flow unfortunately, but I'll pass this along as a feature request.
That being the case, to distribute a client-side Python app without including the app secret, you'd need to implement the token flow yourself, either by modifying the SDK or without using the SDK at all. Note that the token flow requires a redirect URI though, so you'd need to use a local redirect URI.
Greg-DB
Dropbox Staff
The Dropbox OAuth 2 app authorization implementation supports two different flows:
- the "code" flow: this flow requires both the app key and secret
- the "token" flow: this flow only requires the app key
The `DropboxOAuth2FlowNoRedirect` class in the Dropbox Python SDK uses the "code" flow, so it requires the app key and secret.
The Python SDK doesn't implement the "token" flow unfortunately, but I'll pass this along as a feature request.
That being the case, to distribute a client-side Python app without including the app secret, you'd need to implement the token flow yourself, either by modifying the SDK or without using the SDK at all. Note that the token flow requires a redirect URI though, so you'd need to use a local redirect URI.
Manotai M.
7 years agoNew member | Level 2
การทำงานversionเก่ามีผลต่อการใช้งานในDropboxของฉัน
- Greg-DB7 years agoDropbox Staff
Manotai M. If you're having trouble with Dropbox itself, you can contact support here:
https://www.dropbox.com/support
[This thread is now closed. If you have a similar or new question, you can ask here]
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 7 hours agoIf 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 or Facebook.
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!