1 require 'oauth/controllers/provider_controller'
3 class OauthController < ApplicationController
4 include OAuth::Controllers::ProviderController
14 def user_authorizes_token?
17 @token.client_application.permissions.each do |pref|
19 @token.write_attribute(pref, true)
22 @token.write_attribute(pref, false)
30 @token = current_user.oauth_tokens.find_by_token params[:token]
33 flash[:notice] = t('oauth.revoke.flash', :application => @token.client_application.name)
35 redirect_to :controller => 'oauth_clients', :action => 'index'