mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 15:46:16 +08:00
FIX: skip jwt encoding for auth
This commit is contained in:
parent
eb593f568f
commit
0ef141b2c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user