As koha administrators, we are often not in control of the form in which we will receive an attribute from a shibboleth identity provider.
This envisaged enhancement would add the ability to define very simple string manipulations to an attribute in the koha config file.
Example of enhanced config:
<userid is="email" regex="email@example.com//g"></userid>
In the above example, we want to match koha userid to the 'stuff before the @' in the users email attribute.
do you have any code about this topic ?
I'm tring to do a similar development.
I'm afraid I never got to this one, I had too many other outstanding shibboleth via awaiting signoff and qa to devote time to this.
In another ago I wrote shibboleth interactions for however, we use perl config files. It was very easy there to just replace the simple mapping with more complex control statements anonymous subroutine references.. That's likely how I would attempt to impliment such a piece these days