pelle / oauth-plugin

Rails plugin for OAuth
http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails
MIT License
716 stars 216 forks source link

Force removal of existing token #69

Closed afeld closed 12 years ago

afeld commented 13 years ago

So I came across the issue where I was attempting an API but the user's token had either expired or they had unauthorized the app, but sending the user to the 'show' action would display the "you already have a token" page, rather than redirecting them to the service's auth page and getting a new token.

There are probably other ways to go about this, but my approach was to pass a ?force=1 query param to the request, which would delete the existing token. Totally open to ideas about how to do this differently.

pelle commented 13 years ago

I know this has been her for a while. Let me brew on it and get it in the next release.

pelle commented 12 years ago

merged.