Class: Devise::OmniauthCallbacksController
Instance Method Summary
collapse
#_prefixes, #devise_mapping, #resource, #resource_class, #resource_name, #signed_in_resource
Instance Method Details
#failure ⇒ Object
8
9
10
11
|
# File 'app/controllers/devise/omniauth_callbacks_controller.rb', line 8
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
|
#passthru ⇒ Object
4
5
6
|
# File 'app/controllers/devise/omniauth_callbacks_controller.rb', line 4
def passthru
render :status => 404, :text => "Not found. Authentication passthru."
end
|