Forum Discussion

1621449's avatar
1621449
Explorer | Level 3
3 years ago

Need API to get device codes and Redirect URL

In this first step we  executed the “https://www.dropbox.com/oauth2/authorize?client_id=fcfu96aau5vs2rw&response_type=code” call in postman we got the below response with 200 OK (which is success message)

 

 

 

 

But the same call when executed in browser we observed the following behavior ,

 

 

 

 

After selecting “Allow” button we observed the below Screen

 

 

 

 

But the behavior should be like when we call the API ,Dropbox should return “user code” and URL where we enter the “user code” to authenticate.

 

We didn’t find the above mentions behavior.

 

STEP2: The code which we got from above step “9UOc7IydP3AAAAAAAAAAtN-x3o5OKWxmJYiZ6Q0RtB4” is used as Authorization code for the below API call to get access token

 

 

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

    Based on your reference to "user code" and "device code", it sounds like you're looking for the OAuth 2 "device flow". Dropbox does not currently offer support for the OAuth 2 device flow, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

     

    Dropbox currently only offers the "code" (preferred) and "token" grants. You can find more information on using them in the OAuth Guide and authorization documentation.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 3 days ago
217 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!