<div dir="ltr">Please create a JIRA and we'll look into it.</div><div class="gmail_extra"><br><div class="gmail_quote">On 22 July 2016 at 02:03, Rashmi Singh <span dir="ltr"><<a href="mailto:singhrasster@gmail.com" target="_blank">singhrasster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Please confirm that this is a bug. If yes, can we have this fixed? We really wanted this feature in our project ASAP. Please let me know what can be done about this.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 7:18 AM, Stian Thorgersen <span dir="ltr"><<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Looks like a bug then - Bill any comments?</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 20 July 2016 at 09:12, Rashmi Singh <span dir="ltr"><<a href="mailto:singhrasster@gmail.com" target="_blank">singhrasster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For now, I want the default value to show up in the admin console only when looking at the config of the authenticator. The issue is that the default value I am setting for the properties in authenticatorFactory are not showing up on the admin console when you look at the authenticator -> config. I see the properties displayed there but they dont show the default values I set in the factory class. For booleans, it always show false and for string types, always blank and not what I set. I am not looking for the default values in <span style="font-size:12.8px">AuthenticationFlowContext.</span><span style="font-size:12.8px">get<wbr>AuthenticatorConfig. I am looking for it in the admin console only. I expected this to work but it doesn't. Is it a bug?</span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 20, 2016 at 1:04 AM, Stian Thorgersen <span dir="ltr"><<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It looks like the default value is only used in the admin console to show a default value for the option when configuring the authenticator. The default values are not added to AuthenticationFlowContext.<wbr>getAuthenticatorConfig unless the authenticator is first configured through the admin console. It would be better if it was though so default values would always be available. Feel free to create an enhancement JIRA issue for it.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 19 July 2016 at 16:23, Rashmi Singh <span dir="ltr"><<a href="mailto:singhrasster@gmail.com" target="_blank">singhrasster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Infact, not only Boolean, it does not seem to work for even properties that are STRING_TYPE. I was using 1.9.4 version earlier but now I tried with the latest 2.0.0 version too and it does not work on either. What is the issue?</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 19, 2016 at 7:00 AM, Rashmi Singh <span dir="ltr"><<a href="mailto:singhrasster@gmail.com" target="_blank">singhrasster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Bruno, I had tried "true" also but that did not work either. Forgot to mention in my original post. I am not sure why true or "true" doesn't work if that's expected. Is there a bug? Does anyone have a clue on this?</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 19, 2016 at 4:13 AM, Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rashmi, try "true" instead of true. Take a look at this: <a href="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" rel="noreferrer" target="_blank">https://github.com/keycloak/<wbr>keycloak/blob/<wbr>f6a718f10a3a3a07a6222bea7d8b58<wbr>e13712479c/testsuite/<wbr>integration-arquillian/<wbr>servers/auth-server/services/<wbr>testsuite-providers/src/main/<wbr>java/org/keycloak/testsuite/<wbr>federation/<wbr>DummyConfigurableUserFederatio<wbr>nProviderFactory.java#L53-L58</a><br>
<br>
In theory, should work.<br>
<div><div><br>
On 2016-07-18, Rashmi Singh wrote:<br>
> In my AuthenticatorFactory class, I have the following configuration added:<br>
><br>
> ProviderConfigProperty property;<br>
> property= new ProviderConfigProperty();<br>
> property.setName("propname");<br>
> property.setLabel("Property Name");<br>
> property.setDefaultValue(<wbr>true);<br>
> property.setType(<wbr>ProviderConfigProperty.<wbr>BOOLEAN_TYPE);<br>
> configProperties.add(<wbr>identityFirstproperty);<br>
><br>
> I wanted to keep a default value as true and at first it seemed like the<br>
> following line would do it:<br>
><br>
> property.setDefaultValue(true)<wbr>;<br>
><br>
> But that does not seem to work. The default is still false. How can I set<br>
> the default to true?<br>
<br>
</div></div>> ______________________________<wbr>_________________<br>
> keycloak-dev mailing list<br>
> <a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-dev</a><br>
<br>
<br>
--<br>
<br>
abstractj<br>
PGP: 0x84DC9914<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-dev</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>