[keycloak-dev] Read-only attributes for UserFederation providers

Stian Thorgersen sthorger at redhat.com
Mon Aug 15 06:28:43 EDT 2016


+1

On 22 July 2016 at 18:57, Marek Posolda <mposolda at redhat.com> wrote:

> +1
>
> Marek
>
> On 22/07/16 11:51, Bruno Oliveira wrote:
> > Good morning,
> >
> > I was working on this issue[1] this week and thinking about how
> > to tell our interface that the federation provider has read-only
> > attributes.
> >
> > For example, today for the LDAPFederationProvider[2], we
> > provide server side validations telling our user that they cannot edit
> > those attributes. But still, input fields are editable and user
> > will only know after hit the submit button.
> >
> > Not sure if makes sense, but very maybe if we provide a method
> > at UserFederation like:
> >
> > boolean isReadOnly(); //defaults to false or override it and return true
> >
> > And later expose it to the interface, we could bring the
> > text field properties set to read-only.
> >
> > Does it make any sense?
> >
> >
> > [1] - https://issues.jboss.org/browse/KEYCLOAK-3060
> > [2] - https://github.com/keycloak/keycloak/blob/
> c7a8742a368bd8d76301145b08bb1e4af1b010e9/federation/ldap/
> src/main/java/org/keycloak/federation/ldap/ReadonlyLDAPUserModelDelegate.
> java#L38-L64
> >
> > --
> >
> > abstractj
> > PGP: 0x84DC9914
> > _______________________________________________
> > keycloak-dev mailing list
> > keycloak-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160815/318ad8eb/attachment.html 


More information about the keycloak-dev mailing list