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
tonetheman
8 years agoNew member | Level 2
javascript single page oauth
I have a working application using the python sdk that has a flask server as a backend. And that works I am good with the oauth flow and the application does what it is supposed to do. I started ...
- 8 years ago
For reference, this JavaScript SDK auth example shows how to initiate the app authorization flow:
https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/auth/index.html#L89
The parameter passed to getAuthenticationUrl should be where the user should be sent back to after authorizing your app.
In your case, where is your JavaScript single page app hosted? I.e., what's the URL in the browser when you're on the page? You may be able to use that as a redirect URI.
Greg-DB
8 years agoDropbox Staff
For reference, this JavaScript SDK auth example shows how to initiate the app authorization flow:
https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/auth/index.html#L89
The parameter passed to getAuthenticationUrl should be where the user should be sent back to after authorizing your app.
In your case, where is your JavaScript single page app hosted? I.e., what's the URL in the browser when you're on the page? You may be able to use that as a redirect URI.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days 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!