[keycloak-dev] How to set default value of a boolean ProviderConfigProperty to true

Rashmi Singh singhrasster at gmail.com
Mon Jul 18 20:19:14 EDT 2016


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160718/1c0294f8/attachment.html 


More information about the keycloak-dev mailing list