Class: Kingsman::OmniauthCallbacksController
- Inherits:
-
KingsmanController
- Object
- KingsmanController
- Kingsman::OmniauthCallbacksController
- Defined in:
- app/controllers/kingsman/omniauth_callbacks_controller.rb
Instance Method Summary collapse
Methods inherited from KingsmanController
Instance Method Details
#failure ⇒ Object
10 11 12 13 |
# File 'app/controllers/kingsman/omniauth_callbacks_controller.rb', line 10 def failure :alert, :failure, kind: OmniAuth::Utils.camelize(failed_strategy.name), reason: redirect_to after_omniauth_failure_path_for(resource_name) end |
#passthru ⇒ Object
6 7 8 |
# File 'app/controllers/kingsman/omniauth_callbacks_controller.rb', line 6 def passthru render status: 404, plain: "Not found. Authentication passthru." end |