cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We're looking to hear about your experience when using Dropbox in a web browser. What parts of Dropbox feels very slow to you and takes a lot of time to get done? What are you trying to do in the Dropbox web browser when you experience slowness? Tell us right 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: 
1
Ask
2
Reply and help

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

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

Greg-DB
Dropboxer

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.

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

Dolphin_2018
Explorer | Level 4

I'll check it, thanks.

 

Who's talking

Top contributors to this post

  • User avatar
    Dolphin_2018 Explorer | Level 4
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?