From 0ef141b2c34d6b0e86ebb8df81a457dca2973bb4 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 5 Feb 2016 08:48:16 +1100 Subject: [PATCH] FIX: skip jwt encoding for auth --- lib/auth/google_oauth2_authenticator.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/auth/google_oauth2_authenticator.rb b/lib/auth/google_oauth2_authenticator.rb index 0f40c91f0cb..c51e5a01d0d 100644 --- a/lib/auth/google_oauth2_authenticator.rb +++ b/lib/auth/google_oauth2_authenticator.rb @@ -31,12 +31,15 @@ class Auth::GoogleOAuth2Authenticator < Auth::Authenticator end def register_middleware(omniauth) + # jwt encoding is causing auth to fail in quite a few conditions + # skipping omniauth.provider :google_oauth2, :setup => lambda { |env| strategy = env["omniauth.strategy"] strategy.options[:client_id] = SiteSetting.google_oauth2_client_id strategy.options[:client_secret] = SiteSetting.google_oauth2_client_secret - } + }, + skip_jwt: true end protected