<div dir="ltr">+1</div><div class="gmail_extra"><br><div class="gmail_quote">On 22 July 2016 at 18:57, Marek Posolda <span dir="ltr">&lt;<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+1<br>
<span class="HOEnZb"><font color="#888888"><br>
Marek<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 22/07/16 11:51, Bruno Oliveira wrote:<br>
&gt; Good morning,<br>
&gt;<br>
&gt; I was working on this issue[1] this week and thinking about how<br>
&gt; to tell our interface that the federation provider has read-only<br>
&gt; attributes.<br>
&gt;<br>
&gt; For example, today for the LDAPFederationProvider[2], we<br>
&gt; provide server side validations telling our user that they cannot edit<br>
&gt; those attributes. But still, input fields are editable and user<br>
&gt; will only know after hit the submit button.<br>
&gt;<br>
&gt; Not sure if makes sense, but very maybe if we provide a method<br>
&gt; at UserFederation like:<br>
&gt;<br>
&gt; boolean isReadOnly(); //defaults to false or override it and return true<br>
&gt;<br>
&gt; And later expose it to the interface, we could bring the<br>
&gt; text field properties set to read-only.<br>
&gt;<br>
&gt; Does it make any sense?<br>
&gt;<br>
&gt;<br>
&gt; [1] - <a href="https://issues.jboss.org/browse/KEYCLOAK-3060" rel="noreferrer" target="_blank">https://issues.jboss.org/<wbr>browse/KEYCLOAK-3060</a><br>
&gt; [2] - <a href="https://github.com/keycloak/keycloak/blob/c7a8742a368bd8d76301145b08bb1e4af1b010e9/federation/ldap/src/main/java/org/keycloak/federation/ldap/ReadonlyLDAPUserModelDelegate.java#L38-L64" rel="noreferrer" target="_blank">https://github.com/keycloak/<wbr>keycloak/blob/<wbr>c7a8742a368bd8d76301145b08bb1e<wbr>4af1b010e9/federation/ldap/<wbr>src/main/java/org/keycloak/<wbr>federation/ldap/<wbr>ReadonlyLDAPUserModelDelegate.<wbr>java#L38-L64</a><br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; abstractj<br>
&gt; PGP: 0x84DC9914<br>
&gt; ______________________________<wbr>_________________<br>
&gt; keycloak-dev mailing list<br>
&gt; <a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
&gt; <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>
______________________________<wbr>_________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">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>
</div></div></blockquote></div><br></div>