Sha256: ad465242f2702babaec6458bd23fcade677492f2f1e26268d956bce6e0ea3b7d
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
Rails.application.config.middleware.use OmniAuth::Builder do provider :shopify, ShopifyApp.configuration.api_key, ShopifyApp.configuration.secret, :scope => 'write_script_tags,write_shipping,write_orders,read_orders,read_products,read_customers,read_content', :setup => lambda {|env| params = Rack::Utils.parse_query(env['QUERY_STRING']) site_url = "https://#{params['shop']}" Rails.logger.info(env['omniauth.strategy']) env['omniauth.strategy'].options[:client_options][:site] = site_url } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify_app-3.0.0 | lib/generators/shopify_app/templates/config/initializers/omniauth.rb |