We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

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

Permanent Token?

I'm really just double checking here...  because it looks like DB is moving to the refresh-token model, and this is not robust enough for what I want to do.

 

We are trying to use Dropbox to upload files from a series of unattended test systems.  (Well, they are attended, but mainly by operators with with no authority).  We will have an engineer on site, but we want as minimal interaction as possible.

This means I would like to have a permanent token for a specific area within DB that we can upload and and download files by these automated systems.

 

Just to head off questions about it... these will be running in a la in a foreign country, and there will be minimal access.  So if DB cannot provide this type of access, then we will have to find another service.

 

 


  • ultralame wrote:

    ...
    This means I would like to have a permanent token for a specific area within DB that we can upload and and download files by these automated systems.

    ...


    The refresh token is permanent (if not intentionally revoked or until revoke). About the "specific area": application folder access (instead of full access), doesn't it cover your expectations?

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    ultralame wrote:

    ...
    This means I would like to have a permanent token for a specific area within DB that we can upload and and download files by these automated systems.

    ...


    The refresh token is permanent (if not intentionally revoked or until revoke). About the "specific area": application folder access (instead of full access), doesn't it cover your expectations?

    • ultralame's avatar
      ultralame
      Explorer | Level 3

      Wait, the refresh token doesn't expire?

      So I can exchange the static refresh token for a new token each time I run?  I am deploying this to a couple dozen autonomous systems.  I need to be able to do this knowing that the token is basically permanent until I revoke it.

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        ultralame wrote:

        Wait, the refresh token doesn't expire?
        ...


        Exactly. Or least to a moment (if any) when application itself revoke it or user, who granted access, revokes it.

         


        ultralame wrote:

        ...
        So I can exchange the static refresh token for a new token each time I run?  I am deploying this to a couple dozen autonomous systems.  I need to be able to do this knowing that the token is basically permanent until I revoke it.


        Take a look here for an example how all tokens can be "produced" and access token got "refreshed" using refresh token whenever needed. If you are using some supported SDK, usually refreshing is performed in the SDK on demand (function/method call) automatically (without you do anything in addition).

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API

Make connections with other developers

795 PostsLatest Activity: 5 days ago
192 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!