From 030c748adbdade85620afc16bcdaa5944e771068 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 31 Jul 2014 16:55:54 -0400 Subject: [PATCH] Revert "FIX: google oauth2 for sites using https. Need to specify the redirect_uri during setup in this case." This reverts commit fe6235b40ed18909742eee2c3ae7a5f4fefaa010. --- lib/auth/google_oauth2_authenticator.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/auth/google_oauth2_authenticator.rb b/lib/auth/google_oauth2_authenticator.rb index aee5486cee4..86af469e2ec 100644 --- a/lib/auth/google_oauth2_authenticator.rb +++ b/lib/auth/google_oauth2_authenticator.rb @@ -36,8 +36,7 @@ class Auth::GoogleOAuth2Authenticator < Auth::Authenticator strategy = env["omniauth.strategy"] strategy.options[:client_id] = SiteSetting.google_oauth2_client_id strategy.options[:client_secret] = SiteSetting.google_oauth2_client_secret - }, - :redirect_uri => "#{Discourse.base_url}/auth/google_oauth2/callback" + } end protected