From c460fa7b48dd6eaf20b8923f9490e12ce26e9ee6 Mon Sep 17 00:00:00 2001 From: Thomas Darimont Date: Thu, 4 Jul 2024 12:01:32 +0200 Subject: [PATCH] Allow user to configure prompt parameter for google sign-in Closes #16750 Signed-off-by: Thomas Darimont --- .../social/google/GoogleIdentityProviderFactory.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/src/main/java/org/keycloak/social/google/GoogleIdentityProviderFactory.java b/services/src/main/java/org/keycloak/social/google/GoogleIdentityProviderFactory.java index 7da55c1e56..c5aafefd3c 100755 --- a/services/src/main/java/org/keycloak/social/google/GoogleIdentityProviderFactory.java +++ b/services/src/main/java/org/keycloak/social/google/GoogleIdentityProviderFactory.java @@ -54,7 +54,14 @@ public class GoogleIdentityProviderFactory extends AbstractIdentityProviderFacto @Override public List 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() + .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") .label("Hosted Domain") .helpText("Set 'hd' query parameter when logging in with Google. Google will list accounts only for this " +