Revert "Add prompt and HD settings to the Google OAuth2 plugin."
This reverts commit f74d6bb605
.
This commit is contained in:
parent
ca1fd774a1
commit
1c790ae6bc
|
@ -255,14 +255,6 @@ login:
|
||||||
default: false
|
default: false
|
||||||
google_oauth2_client_id: ''
|
google_oauth2_client_id: ''
|
||||||
google_oauth2_client_secret: ''
|
google_oauth2_client_secret: ''
|
||||||
google_oauth2_prompt:
|
|
||||||
default: 'none'
|
|
||||||
type: enum
|
|
||||||
choices:
|
|
||||||
- 'none'
|
|
||||||
- 'consent'
|
|
||||||
- 'select_account'
|
|
||||||
google_oauth2_hd: ''
|
|
||||||
enable_yahoo_logins:
|
enable_yahoo_logins:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
|
|
|
@ -59,9 +59,7 @@ class Auth::GoogleOAuth2Authenticator < Auth::Authenticator
|
||||||
strategy.options[:client_id] = SiteSetting.google_oauth2_client_id
|
strategy.options[:client_id] = SiteSetting.google_oauth2_client_id
|
||||||
strategy.options[:client_secret] = SiteSetting.google_oauth2_client_secret
|
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
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
Loading…
Reference in New Issue