Class: ShopifyApp::CallbackController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ShopifyApp::CallbackController
- Includes:
- EnsureBilling, LoginProtection
- Defined in:
- app/controllers/shopify_app/callback_controller.rb
Overview
Performs login after OAuth completes
Constant Summary
Constants included from EnsureBilling
EnsureBilling::RECURRING_INTERVALS
Constants included from LoginProtection
LoginProtection::ACCESS_TOKEN_REQUIRED_HEADER
Instance Method Summary collapse
Methods included from LoginProtection
#activate_shopify_session, #add_top_level_redirection_headers, #current_shopify_session, #jwt_expire_at, #login_again_if_different_user_or_shop, #signal_access_token_required
Instance Method Details
#callback ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/controllers/shopify_app/callback_controller.rb', line 9 def callback begin api_session, = validated_auth_objects rescue => error deprecate_callback_rescue(error) unless error.class.module_parent == ShopifyAPI::Errors return respond_with_error end save_session(api_session) if api_session (api_session, ) return respond_with_user_token_flow if start_user_token_flow?(api_session) perform_post_authenticate_jobs(api_session) redirect_to_app if check_billing(api_session) end |