[keycloak-user] How to handle multivalued custom attributes in account client?

Marek Posolda mposolda at redhat.com
Tue Jun 20 05:55:38 EDT 2017


We have JIRA open for Profile SPI, which among other things, will 
hopefully provide support for proper handling of multivalued attributes. 
There is a plan to add it in Keycloak 3.X.

Marek

On 19/06/17 11:44, Federico Navarro Polo - Info.nl wrote:
> Hello,
>
> I’m facing a scenario where I have defined a custom attribute as multivalued. It works all fine using the REST admin API, and while in the Keycloak admin console is displayed as a ‘##’ separated string, it’s also functional in terms of displaying/editing the values.
>
> However, when it comes to adding the attribute to the account client, it apparently only shows the first element of the attribute, and I get the following log trace:
>
>>>> [org.keycloak.forms.account.freemarker.model.AccountBean] (default task-41) There are more values for attribute 'additionalProductIds' of user 'somebody at somewhere.com' . Will display just first value
> Am I overlooking some configuration to enable the handling of multivalued custom attributes?
>
>
>
>
> Met vriendelijke groet,
>
> Federico Navarro
>
> backend developer
>
> federico at info.nl<mailto:federico at info.nl>  |  LinkedIn<http://www.linkedin.com/in/jasperleferink>  |  +31 (0)2 05 30 91 61<tel:+31205309161>
>
> info.nl<http://www.info.nl/>
>
> Sint Antoniesbreestraat 16  |  1011 HB Amsterdam  |  +31 (0)20 530 9100<tel:+31205309100>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list