Class: Devise::OmniauthCallbacksController

Inherits:
DeviseController show all
Defined in:
app/controllers/devise/omniauth_callbacks_controller.rb

Instance Method Summary collapse

Methods inherited from DeviseController

#_prefixes, internal_methods

Instance Method Details

#failureObject



10
11
12
13
# File 'app/controllers/devise/omniauth_callbacks_controller.rb', line 10

def failure
  set_flash_message! :alert, :failure, kind: OmniAuth::Utils.camelize(failed_strategy.name), reason: failure_message
  redirect_to after_omniauth_failure_path_for(resource_name)
end

#passthruObject



6
7
8
# File 'app/controllers/devise/omniauth_callbacks_controller.rb', line 6

def passthru
  render status: 404, plain: "Not found. Authentication passthru."
end