I've been trying to use the following property:
cas.authn.pac4j.oidc[0].azure.mapped-claims=upn->email
It didn't seem to work so I started digging thru the code.
I see mappedClaims property in BasePac4jOidcClientProperties:
/**
* List arbitrary mappings of claims when fetching user profiles.
* Uses a "directed list" where the allowed
* syntax would be {@code claim->attribute}.
*/
private List<String> mappedClaims = new ArrayList<>();
but I dont see mappedClaims being referenced anywhere except for BaseDelegatedIdentityProviderFactory.java class which is new in v7.0.0-RC9.
How else to map a claim to a custom attribute which I plan on releasing downstream?
-psv