I need to transform principal before get attributes. I'm using CAS 6.1 and the class that creates the Principal is: PersonDirectoryPrincipalResolver (https://github.com/apereo/cas/blob/6.1.x/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java).
How can I transform the principal? There is a "principalNameTransformer" attribute but I don't know how to configure it.
Per CAS documentation,
This means for a given authentication handler/scheme, you can find a reference in the properties guide such as:
...and available properties are here:
Enable and tweak the ones you want.
To understand what a configuration key is, see this.