Search code examples
ruby-on-railsoauthtwitteroauth-ruby

De-authorizing a twitter OAuth application


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.


Solution

  • 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.