Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi, I am developing an android app. It uses api v2 to upload images, sign in, and sign out. I don't know how to sign out from my app. Can you help me?
What do you mean by "sign out?"
If you want to "forget" a user in your app, just delete the stored access token and stop using the auth'd DbxClientV2 object.
"Sign out" is users can log in another account. Deleting access token is just not to link an existed account.
You can log a user in whenever you want. Just take the new user through the OAuth flow.
Maybe you can be more specific about the problem you're having.
I use dropbox-sdk-java to develop an Android app. There are three buttons in a window.
One is "Login". Two is "Logout". Three is "Upload". Users can not logout after log a user in.
Can you tell me how to use the sdk to do OAuth flow.
What does your "Login" button do?
Just do that again.
When users click the button, I will call startOAuth2Authentication api.
If a user account never login, it will ask users to enter E-mail and password.
I want to ask users to enter E-mail and password every time click login button.
Ah, I think maybe I understand.
So you want to programmatically log the user out of dropbox.com. This is not something you can do via the API, since in general, users don't want apps to be able to log them out of their browser sessions.
That said, you can always send the user to https://www.dropbox.com/logout, which will log them out in the browser, but it won't return the user to your app.
Thank you a lot. Can I use WebView to login and logout? Do you have sample code?
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!