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

cloudlife's avatar
cloudlife
Helpful | Level 6
8 years ago

Implicit Grant Returns Access Denied unless localhost

Background page: https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/   So I'm trying to use the implicit grant method of login as I have always done before. However, f...
  • Greg-DB's avatar
    8 years ago
    What's the URL of the page where you see the 'AccessDenied' output? That doesn't look like the format for an error from Dropbox. Is it your redirect URI itself? If so, I'm afraid I can't offer much help, as that would be an issue with your page, so you'd have to investigate what's happening there to cause that error.
  • cloudlife's avatar
    cloudlife
    8 years ago

    The access denied url is on my cloudfront loginredirect url. However, there's also a difference in the way it works from Dropbox's side too.

    When I'm using the implicit grant from localhost, I actually get a Dropbox page-Request for access to app folder every time I log in. However, when I use the cloudfront redirect url, it skips this page completely going straight to a access denied page.

    I don't see why there was a difference in behavior from Dropbox as well.

    In addition, I never defined this access denied page. It's also spitting out a RequestId and HostId.

    -----------------------
    SOLVED: It was an issue with the routing of the loginredirect page and the way it's managed by AWS, since it's a single page application. (To further elaborate just in case someone else runs into the same problem, essentially all urls need to point back to the index.html page. Due to limitations on the implicit grant and running a single page application)

    The difference in Dropbox behavior persists even now that it's working. So apparently localhost and real redirect urls are treated differently.

    Thanks for trying to help!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,884 PostsLatest Activity: 6 hours ago
326 Following

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!