cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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 3

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 3

I'll check it, thanks.

 

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

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