取消对 Twitter OAuth 应用程序的授权
我们刚刚使用 Twitter gem 在 RoR 应用程序中实现了 OAuth。整个身份验证过程完美运行,我们能够保留访问令牌。我们想知道是否有办法取消我们通过网站访问 Twitter 的授权。我意识到我们可以销毁持久令牌,但我也希望能够将我们从 连接列表中删除 在 Twitter 上,这样用户就会感觉到我们与他们的帐户完全断开了连接。我们检查了 oauth-ruby 和 twitter rdocs 并找不到任何相关内容。
提前致谢。
We just finished implementing OAuth in our RoR application using the Twitter gem. The whole authentication process works perfectly and we are able to persist access tokens. We're wondering if there's a way for our de-authorize our access to twitter via our website. I realize we could just destroy the persisted token, but I'd also like to be able to remove us from the connections list on twitter so the user gets the sense that we're totally disconnected from their account. We checked the oauth-ruby and twitter rdocs and couldn't find anything relevant.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于可能存在漏洞,Twitter 不提供此 API。查看 Raffi 的回复 -
http://groups.google .com/group/twitter-development-talk/browse_thread/thread/64a49da760250d9/bfe896c156670692
但您始终可以将用户引导至 twitter/settings/connections 并要求用户手动撤销对您的应用的访问权限。
Due to possible vulnerabilities Twitter does not provide this API. Look at Raffi's response -
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/64a49da760250d9/bfe896c156670692
But you can always direct the user to twitter/settings/connections and ask the user to revoke access to your app manually.
这里完全相同的问题。我研究过 Twitter 文档,我能想到的最好的办法就是扔掉令牌。 Twitter方面似乎没有任何用于取消授权的API。
Exactly the same issue here. I've studied to Twitter docs, and the best I could come up with is just to throw away the token. There doesn't seem to be any API for deauthorizing at the Twitter side.