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

programmer's avatar
programmer
Helpful | Level 5
2 years ago

pkce web auth does not work

I have app and want to authorize using this url:

 

https://www.dropbox.com/oauth2/authorize?token_access_type=offline&response_type=code&code_challenge_method=S256&client_id=up9dc6vspz96ghi&code_challenge=_6rj6cf1qTS7Ia6slqNF9hjQnynzBuITIyKJ8K-lVUc

 

After that I chose "sign in with google", chose my google account, enter password, and as a result I get the same page

 

https://www.dropbox.com/oauth2/authorize?client_id=up9dc6vspz96ghi&code_challenge=_6rj6cf1qTS7Ia6slqNF9hjQnynzBuITIyKJ8K-lVUc&code_challenge_method=S256&response_type=code&token_access_type=offline

 

 

I tried to use 2 different google accounts: the result is the same.

 

Just about 2 days ago authorization did work. Now I can't authorize.

  • It looks like the issue here is that the app you're attempting to authorize has team scopes, but the account you're signing in to is not on a team, and so cannot connect an app with team scopes.

     

    Accordingly, you're being prompted to sign in again with a team account in order to connect the app. Normally, when signing in with Dropbox credentials, the page would show an error message indicating as much. This doesn't appear to be displayed when using the Google Sign In flow though. I'll ask the team to fix that up to show the error in that case as well.

     

    So, to authorize this app, you'd need to either sign in to a team account, or not request team scopes.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    It looks like the issue here is that the app you're attempting to authorize has team scopes, but the account you're signing in to is not on a team, and so cannot connect an app with team scopes.

     

    Accordingly, you're being prompted to sign in again with a team account in order to connect the app. Normally, when signing in with Dropbox credentials, the page would show an error message indicating as much. This doesn't appear to be displayed when using the Google Sign In flow though. I'll ask the team to fix that up to show the error in that case as well.

     

    So, to authorize this app, you'd need to either sign in to a team account, or not request team scopes.

    • programmer's avatar
      programmer
      Helpful | Level 5

      Thank you Greg. I am really surprised how soon dropbox tech support replied! Compared with google (google drive), they don't answer at all. Moreover -- dropbox is faster and works better for my app than Google Drive, at least as far as I can see while testing!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,911 PostsLatest Activity: 4 hours ago
333 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!