Sha256: 0e92af64e787177abc91cf3661d14a7404f4d95bf94976f604ba84e3008b2155

Contents?: true

Size: 690 Bytes

Versions: 6

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

module ShopifyApp
  module EnsureHasSession
    extend ActiveSupport::Concern

    included do
      include ShopifyApp::Localization

      if ShopifyApp.configuration.use_new_embedded_auth_strategy?
        include ShopifyApp::TokenExchange
        around_action :activate_shopify_session
      else
        include ShopifyApp::LoginProtection
        before_action :login_again_if_different_user_or_shop
        around_action :activate_shopify_session
        after_action :add_top_level_redirection_headers
      end

      include ShopifyApp::CsrfProtection
      include ShopifyApp::EmbeddedApp
      include ShopifyApp::EnsureBilling
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shopify_app-22.4.0 app/controllers/concerns/shopify_app/ensure_has_session.rb
shopify_app-22.3.1 app/controllers/concerns/shopify_app/ensure_has_session.rb
shopify_app-22.3.0 app/controllers/concerns/shopify_app/ensure_has_session.rb
shopify_app-22.2.1 app/controllers/concerns/shopify_app/ensure_has_session.rb
shopify_app-22.2.0 app/controllers/concerns/shopify_app/ensure_has_session.rb
shopify_app-22.1.0 app/controllers/concerns/shopify_app/ensure_has_session.rb