Class: DuodealerApp::CallbackController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- DuodealerApp::CallbackController
- Includes:
- LoginProtection
- Defined in:
- app/controllers/duodealer_app/callback_controller.rb
Overview
Performs login after OAuth completes
Instance Method Summary collapse
Methods included from LoginProtection
#account_session, #duodealer_session, #login_again_if_different_user_or_account
Instance Method Details
#callback ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/duodealer_app/callback_controller.rb', line 8 def callback if auth_hash login_account install_webhooks perform_after_authenticate_job redirect_to return_address else flash[:error] = I18n.t("could_not_log_in") redirect_to(login_url_with_optional_account) end end |