As of now Keycloak allows to specify claims as single values of String, boolean, int and
long. By naming a claim with "fully qualified name like
'address.street'" Keycloak creates a nested json object. But what if someone
wants to specify a list of addresses? How to achieve that? Especially when this list has
to be updated through Admin REST API?
That's the use-case I and my colleagues at work have faced. We want to store a list of
servers (name, url, some ids) as a hardcoded claim, be able to fetch them from userinfo
and show in Web UI to choose one and connect to. Currently we store the list as a json in
a String claim, but it would be more appropriate to specify a raw json in a single claim
that would be included in claims as a node.