Sha256: 7350e5d9652a7d4a0fa2431c7c7ed3159f8238783726d09db13ff17cd8f852bb

Contents?: true

Size: 625 Bytes

Versions: 14

Compression:

Stored size: 625 Bytes

Contents

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :shopify, 
           ShopifyApp.configuration.api_key, 
           ShopifyApp.configuration.secret,

           # Example permission scopes - see http://docs.shopify.com/api/tutorials/oauth for full listing
           :scope => 'read_orders, read_products',

           :setup => lambda {|env| 
                       params = Rack::Utils.parse_query(env['QUERY_STRING'])
                       site_url = "https://#{params['shop']}"
                       env['omniauth.strategy'].options[:client_options][:site] = site_url
                     }
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
shopify_app-5.0.2 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-5.0.1 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app_lrb3-5.0.0 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-5.0.0 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.4.6 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.4.5 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.4.4 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.4.2 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.4.1 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.4.0 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.2.3 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.2.2 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.2.1 lib/generators/shopify_app/templates/config/initializers/omniauth.rb
shopify_app-4.2.0 lib/generators/shopify_app/templates/config/initializers/omniauth.rb