[keycloak-dev] How to set default value of a boolean ProviderConfigProperty to true
Bruno Oliveira
bruno at abstractj.org
Tue Jul 19 05:13:31 EDT 2016
Hi Rashmi, try "true" instead of true. Take a look at this: https://github.com/keycloak/keycloak/blob/f6a718f10a3a3a07a6222bea7d8b58e13712479c/testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers/src/main/java/org/keycloak/testsuite/federation/DummyConfigurableUserFederationProviderFactory.java#L53-L58
In theory, should work.
On 2016-07-18, Rashmi Singh wrote:
> In my AuthenticatorFactory class, I have the following configuration added:
>
> ProviderConfigProperty property;
> property= new ProviderConfigProperty();
> property.setName("propname");
> property.setLabel("Property Name");
> property.setDefaultValue(true);
> property.setType(ProviderConfigProperty.BOOLEAN_TYPE);
> configProperties.add(identityFirstproperty);
>
> I wanted to keep a default value as true and at first it seemed like the
> following line would do it:
>
> property.setDefaultValue(true);
>
> But that does not seem to work. The default is still false. How can I set
> the default to true?
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
--
abstractj
PGP: 0x84DC9914
More information about the keycloak-dev
mailing list