FIX: Never add query params to the callback URL (#52)

FIX: Never add query params to the callback URL (#52)

We never want query params to be added to the callback URL. This same override is used in a number of OAuth2 omniauth providers, including GitHub and Google.

diff --git a/plugin.rb b/plugin.rb
index 185b045..3a81440 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -154,6 +154,10 @@ after_initialize do
         response.parsed
       end
     end
+
+    def callback_url
+      full_host + script_name + callback_path
+    end
   end
 
   DiscourseEvent.on(:user_created) do |user|

GitHub sha: 25674341

This commit appears in #52 which was merged by davidtaylorhq.