Deauthentication through Dropbox JSON API (webhooks)

試著忘記壹切 提交于 2019-12-06 06:48:55

For those interested, I have found the solution.

Send a request to: http://www.dropbox.com/logout?access_token=XXXXX

This will disable the access token and prevent the OAuth process from automatically reviving.

I think the behavior you're objecting to is that the user gets auto-redirected without having to "allow" your app again. This happens if the user has at least one usable access token for your app.

/disable_access_token only disables a single access token, so if the user has others, they'll continue to get immediately redirected.

So you can either be careful to always revoke every token for a user (not always possible, e.g. if they don't use the logout functionality in your app), or you'll have to disable auto-redirection altogether. You can do that by setting the force_reapprove parameter to true when you redirect the user to /oauth2/authorize.

Out of curiosity, why do you need this?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!