2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Add prompt and HD settings to the Google OAuth2 plugin.

This commit is contained in:
Geoffrey Challen 2018-01-11 14:14:31 -06:00 committed by Guo Xiang Tan
parent bfc1301823
commit f74d6bb605
2 changed files with 11 additions and 1 deletions

View file

@ -59,7 +59,9 @@ class Auth::GoogleOAuth2Authenticator < Auth::Authenticator
strategy.options[:client_id] = SiteSetting.google_oauth2_client_id
strategy.options[:client_secret] = SiteSetting.google_oauth2_client_secret
},
skip_jwt: true
skip_jwt: true,
prompt: SiteSetting.google_oauth2_prompt,
hd: SiteSetting.google_oauth2_hd
end
protected