From a88686e8a6669818457a13bb1755c21d98b2eb4b Mon Sep 17 00:00:00 2001 From: "K.Vadim" Date: Tue, 14 Feb 2017 19:46:11 +0700 Subject: [PATCH] query_string cut from method callback_url --- lib/omniauth/strategies/slack.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/omniauth/strategies/slack.rb b/lib/omniauth/strategies/slack.rb index 5e905f0..3d5a2d6 100644 --- a/lib/omniauth/strategies/slack.rb +++ b/lib/omniauth/strategies/slack.rb @@ -97,6 +97,12 @@ def bot_info return {} unless access_token.params.key? 'bot' access_token.params['bot'] end + + private + + def callback_url + full_host + script_name + callback_path + end end end end