From 92d63249d9ffa5f77ae1b3435f6c68a8fc11cd23 Mon Sep 17 00:00:00 2001 From: Ryan Montgomery Date: Sun, 29 Jan 2023 16:35:22 -0500 Subject: [PATCH] Allow the redirect_uri to be passed in as an option --- lib/omniauth/strategies/clever.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/omniauth/strategies/clever.rb b/lib/omniauth/strategies/clever.rb index 1689ef4..95ca9bf 100644 --- a/lib/omniauth/strategies/clever.rb +++ b/lib/omniauth/strategies/clever.rb @@ -60,7 +60,7 @@ def raw_info # Fix unknown redirect uri bug by NOT appending the query string to the callback url. def callback_url - full_host + script_name + callback_path + options[:redirect_uri] || (full_host + script_name + callback_path) end end end