Allow user to configure prompt parameter for google sign-in

Closes #16750

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
This commit is contained in:
Thomas Darimont 2024-07-04 12:01:32 +02:00 committed by GitHub
parent 2ff0d4e4f8
commit c460fa7b48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,14 @@ public class GoogleIdentityProviderFactory extends AbstractIdentityProviderFacto
@Override @Override
public List<ProviderConfigProperty> getConfigProperties() { public List<ProviderConfigProperty> getConfigProperties() {
// The supported authentication URI parameters can be found in the google identity documentation
// See: https://developers.google.com/identity/openid-connect/openid-connect#authenticationuriparameters
return ProviderConfigurationBuilder.create() return ProviderConfigurationBuilder.create()
.property().name("prompt")
.label("Prompt")
.helpText("Set 'prompt' query parameter when logging in with Google. The allowed values are 'none', 'consent' and 'select_account'. " +
"If no value is specified and the user has not previously authorized access, then the user is shown a consent screen.")
.type(ProviderConfigProperty.STRING_TYPE).add()
.property().name("hostedDomain") .property().name("hostedDomain")
.label("Hosted Domain") .label("Hosted Domain")
.helpText("Set 'hd' query parameter when logging in with Google. Google will list accounts only for this " + .helpText("Set 'hd' query parameter when logging in with Google. Google will list accounts only for this " +