Forum Discussion

Laura Ruggeri's avatar
Laura Ruggeri
Helpful | Level 5
5 years ago

Dropbox Api oauth2/authorize grant_type client_credential

In my app we have chosen the personal mailbox as the main service in the cloud to synchronize data with the central system.
We currently have our customers who sign up for the service with our app generate an account and generate an access token directly from the console which will then be used by the app to connect to dropbox. I have read that from September 2021 tokens without exipered will no longer be able to be generated. So I was wondering if dropbox implements the client_credential grant_type to generate a token without the user logging in to allow my app to connect with dropbox. If it's not there, will it ever be implemented by dropbox?

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

    The Dropbox API does not support the "client_credential" grant type, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

    • Laura Ruggeri's avatar
      Laura Ruggeri
      Helpful | Level 5

      I imagined and from what I understand you do not give a certain solution.
      For those who have developed processes that do not require user intervention, what should we do?
      Migrate to another platform?

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

        While the initial authorization needs manual user intervention to authorize the app, the user does not need to be present after that. If your app requires long-term access without the user present, you should request "offline" or "background" access via the OAuth app authorization flow. That way, you can get a refresh token that you can use to retrieve short-lived access tokens whenever needed without further manual user intervention.

         

        Please refer to the OAuth Guide and documentation, as well as this post, for more information.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 days ago
351 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!