Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
Scott_M
8 years agoExplorer | Level 3
OAuth2 http authentication, how to have browser show success?
In our OAuth1, after the user clicked 'Allow' in the browser, the user would get a 'success' message. In our OAuth2, the 'Allow' page in the browser just sits there (even though the app has authe...
- 8 years agoThanks! That's helpful, and it's what I expected. In this case, the best solution would be to configure your localhost server to respond to that GET request with a simple HTML success page of your liking.
Greg-DB
Dropbox Staff
8 years agoThe OAuth 1 and OAuth 2 flows do work a bit differently. With the OAuth 2 "code" flow, which it sounds like you're using, the user is sent to the specified redirect URI after they authorize your app. That's how the app receives the authorization code. Often, this is just an Internet-hosted web page, so the user sees whatever web page that is.
In your case though, it sounds like you're using a localhost server just to receive the redirect, and there's no page to display. If that's the issue, you can have your localhost server itself respond with a simple success page to display at that point.
Feel free to post a screenshot of the issue to make sure I understand what you're seeing though.
- Scott_M8 years agoExplorer | Level 3
- Greg-DB8 years ago
Dropbox Staff
Thanks! That's helpful, and it's what I expected. In this case, the best solution would be to configure your localhost server to respond to that GET request with a simple HTML success page of your liking.- Scott_M8 years agoExplorer | Level 3
OK. It might be nice if there was a way to get the browser to display a success response (as in OAuth1) where the success message had a Dropbox look and feel to it.
But I have it doing something semi-ugly now. I'll see if I get someone to put together something nice looking...
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,975 PostsLatest Activity: 4 hours ago
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 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!