From 241f9342e4f587de8dc0ec19766ed5b2174a3a6b Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 4 Sep 2020 10:19:22 -0700 Subject: [PATCH] fix callback_url param error when query params are also included --- lib/omniauth/strategies/ecwid.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/omniauth/strategies/ecwid.rb b/lib/omniauth/strategies/ecwid.rb index 9783f1d..bb72e85 100644 --- a/lib/omniauth/strategies/ecwid.rb +++ b/lib/omniauth/strategies/ecwid.rb @@ -18,6 +18,12 @@ class Ecwid < OmniAuth::Strategies::OAuth2 uid { access_token.params.fetch("store_id") } + + # ecwid doesnt like it when the query params are also passed + def callback_url + full_host + script_name + callback_path + end + end end end