Class: ShopifyApp::CallbackController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ShopifyApp::CallbackController
- Includes:
- LoginProtection
- Defined in:
- app/controllers/shopify_app/callback_controller.rb
Overview
Performs login after OAuth completes
Constant Summary
Constants included from LoginProtection
LoginProtection::ACCESS_TOKEN_REQUIRED_HEADER
Instance Method Summary collapse
Methods included from LoginProtection
#activate_shopify_session, #current_shopify_session, #login_again_if_different_user_or_shop, #shop_session, #shop_session_by_cookie, #shop_session_by_jwt, #signal_access_token_required, #user_session, #user_session_by_cookie, #user_session_by_jwt
Instance Method Details
#callback ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/shopify_app/callback_controller.rb', line 8 def callback return respond_with_error if invalid_request? store_access_token_and_build_session if start_user_token_flow? return respond_with_user_token_flow end perform_post_authenticate_jobs respond_successfully end |