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

 

 

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    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.

  • 786999's avatar
    786999
    Explorer | Level 3
    3 years ago

    <Support ticket information redacted>

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!