Sha256: a6a65c4e4a1c4a4a207c8c8bbc0a54c7f2b55bc16f93d5b90e8fb7a598a97f08

Contents?: true

Size: 343 Bytes

Versions: 10

Compression:

Stored size: 343 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery

  include Devise::Oauth2::Authorization

  def before_authorize
    Rails.logger.info current_oauth2_client
  end

  def after_authorize
    Rails.logger.info 'We are calling after authorize!!!'
  end

  def after_denied_authorization
    redirect_to '/'
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
devise_oauth2_rails4-2.1.8 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.1.7 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.1.6 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.1.5 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.1.4 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.1.3 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.0.3 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.1.0 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.0.2 spec/dummy/app/controllers/application_controller.rb
devise_oauth2_rails4-2.0.1 spec/dummy/app/controllers/application_controller.rb