cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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: 

Sign out user from dropbox website with an API call

Highlighted

Sign out user from dropbox website with an API call

Helpful | Level 5

Hi,

I am wokring with the Dropbox API v2 .NET SDK.

In my code I want to make it so that users can log in with different dropbox credentials. Right now a user can "sign out" and the token is invalidated and deleted. However, if the user has the dropbox website opened in the same browser and is signed in, the sign in step of the OAuth flow is skipped and the user gets a token from the same credentials.

I am looking for a way to sign users out from the dropbox website whenever the token is deleted so that when the user signs in he/she will get the opportunity to fill in new credentials and get a token for another account. Is there a way to achieve this?

2 Replies 2
Highlighted

Re: Sign out user from dropbox website with an API call

Super Collaborator | Level 20

Hi @BIMcollab,

Actually you can. Just fire out "https://www.dropbox.com/logout" before ask to the user for new creditials.

Hope this helps.

Highlighted

Re: Sign out user from dropbox website with an API call

Dropboxer

@BIMcollab As Здравко mentioned, you can direct the user to https://www.dropbox.com/logout at any time to log them out of the Dropbox web site. Make sure you do so with the user's understanding though, as forcibly logging them out without their knowledge may be confusing or disruptive to them.

Or, you can use the 'forceReapprove' or 'forceReauthentication' parameter on the GetAuthorizeUri method to require the user to explicitly re-authorize the app (giving them a chance to switch accounts, if they wish) or log the user out, respectively, during the app authorization flow. (Apologies, the docs there seem to be missing the full description of these parameters. I'll ask the team to fix that up. In the meantime you can find the corresponding documentation in the HTTP docs here.)

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?