Hi, I'm using a JDBC-based attribute repository to resolve attributes in single-row style <https://apereo.github.io/cas/5.3.x/integration/Attribute-Resolution.html#single-row>. The groups a user is a member of are returned from the database as a comma-seperated list, i.e. the attribute is a single-valued String. I need to transform this String into a mulit-valued attribute, i.e. an attribute representing an array with the individual groups. I'm aware of the option to do this upon attribute release, e.g. using a groovy script <https://apereo.github.io/cas/5.3.x/integration/Attribute-Release-Policies.html#groovy-script>. As I have a lot of services that I need to release the group memberships to, I would prefer to do the transformation earlier when querying the attribute repository, include the array attribute in the user profile and release it without any service-specific transformations.
However, I cannot find a way to get there. How would I implement this? What I tried is adjusting the database (PostgresQL) to return an array instead of a String. Unfortunately, this results in an error I described in another thread <https://groups.google.com/a/apereo.org/forum/#!msg/cas-user/yGrxIkDa5hI/z6zcx_JxBwAJ>. Changing the attribute resolving mode multi-row style is not a feasible option as this would create a lot of overhead and performance drawbacks. So, I would really appreciate help on how to implement the transformation. Cheers, Martin -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/7ce331c2-e97c-4600-a00f-ab04c2519fd4%40apereo.org.
