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