- def revoke
- @token = current_user.oauth_tokens.find_by_token params[:token]
- if @token
- @token.invalidate!
- flash[:notice] = t("oauth.revoke.flash", :application => @token.client_application.name)
- end
- redirect_to oauth_clients_url(:display_name => @token.user.display_name)
- end
-
- protected
-