Module: OAuth2::Provider::Rails::ControllerAuthentication::ClassMethods

Defined in:
lib/oauth2/provider/rails/controller_authentication.rb

Defined Under Namespace

Classes: AuthenticationFilter

Instance Method Summary collapse

Instance Method Details

#authenticate_with_oauth(options = {}) ⇒ Object


7
8
9
# File 'lib/oauth2/provider/rails/controller_authentication.rb', line 7

def authenticate_with_oauth(options = {})
  around_filter AuthenticationFilter.new(options.delete(:scope)), options
end