cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Permanent Token?

Permanent Token?

ultralame
Explorer | Level 3
Go to solution

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.

 

 

1 Accepted Solution

Accepted Solutions

Здравко
Legendary | Level 20
Go to solution

@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?

View solution in original post

4 Replies 4

Здравко
Legendary | Level 20
Go to solution

@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
Explorer | Level 3
Go to solution

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.

Здравко
Legendary | Level 20
Go to solution

@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).

ultralame
Explorer | Level 3
Go to solution

OK, Looks like I made the refresh token work, and obtained one.

I'll test and see if this works for me.  Thank you!

 

Need more support?