cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you new to Dropbox? Our Newcomers group is the perfect place to learn the basics, find out more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Where do I use the app Secret Key? and a Log Out remark...

Where do I use the app Secret Key? and a Log Out remark...

Dolphin_2018
Explorer | Level 4

Hi,

 

1. When I created my app account I saw a field named "Secret Key", where should I use it?

 

2. When I tried to use the:

 

.tokenRevoke();

command it didn't really logged out of the Dropbox account, the evidence for that is that right after sending this command I could call the method:

 

Auth.getOAuth2Token();

and get a valid token key from it that I could use to create a valid client with. It did logged out ONLY after I wrote:

 

AuthActivity.result = null;

 

So I just wonder why isn't it documented anywhere? and also why the:

 

.tokenRevoke();

 

command doesn't do that internaly?

 

Thanks.

 

2 Replies 2

Greg-DB
Dropbox Staff

1. It sounds like you're referring to the "app secret". You won't necessarilly need to use this. For example, for client-side apps, such as Android apps, you would use the "token" app authorization flow, which doesn't require the app secret.

 

2. The `tokenRevoke` method only revokes the access token (whichever is currently loaded in your client object) on the server. It doesn't dispose of the token itself locally, etc. Also, note that the `getOAuth2Token` method only retrieves an access token from the local app authorization flow that jsut occured, and may or may not be the same token as you have currently have loaded in your client object. In general, "logging out" can mean a few different things. There's a discussion here that covers a few different options.

Dolphin_2018
Explorer | Level 4

I'll check it, thanks.

 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Dolphin_2018 Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?