Module: HubriseApp::OauthController::ActionAuthorizeCallback
- Included in:
- HubriseApp::OauthController
- Defined in:
- app/controllers/hubrise_app/oauth_controller/action_authorize_callback.rb
Instance Method Summary collapse
-
#authorize_callback ⇒ Object
authorize access to specific app_instance (expirable).
Instance Method Details
#authorize_callback ⇒ Object
authorize access to specific app_instance (expirable)
6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/hubrise_app/oauth_controller/action_authorize_callback.rb', line 6 def ensure_authenticated! do if current_app_instance HubriseApp::Services::AssignAppInstance.run(current_user, current_app_instance, self) redirect_to(build_hubrise_open_url) else render(plain: "Something went wrong. Please try to reinstall the app") end end end |