app/controllers/hubrise_app/oauth_controller/action_authorize_callback.rb
# authorize access to specific app_instance (expirable)
authorize access to specific app_instance (expirable)
authorize access to specific app_instance ( expirable )
def authorize_callback
    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
def authorize_callback 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
authorize access to specific app_instance (expirable)
authorize access to specific app_instance ( expirable )