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:
parent
2ff0d4e4f8
commit
c460fa7b48
1 changed files with 7 additions and 0 deletions
|
@ -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 " +
|
||||||
|
|
Loading…
Reference in a new issue