Open mmahalwy opened 10 years ago
Did you leave out the scheme (http/https) when specifying your site? Oauth will have a problem if you leave that out.
provider :magento, 't', 'k',
setup: (lambda do |env|
# The following can be set dynamically from params, session, or ENV
request = Rack::Request.new(env)
# puts request.params
env['omniauth.strategy'].options[:client_options][:authorize_path] = "/su"
env['omniauth.strategy'].options[:client_options][:site] = request.params["site"]
env['omniauth.strategy'].options[:consumer_key] = "t"
env['omniauth.strategy'].options[:consumer_secret] = "k"
end)
The problem is that it works on making the call to the site but then on the callback there is no params["site"]