class OauthController < ApplicationController
include OAuth::Controllers::ProviderController
+ # The ProviderController will call login_required for any action that needs
+ # a login, but we want to check authorization on every action.
+ authorize_resource :class => false
+
layout "site"
def revoke
def login_required
authorize_web
set_locale
- require_user
end
def user_authorizes_token?