mapped-claims supported in CAS v6.6.8?

40 views
Skip to first unread message

Pablo Vidaurri

unread,
Jan 5, 2024, 1:00:48 AM1/5/24
to CAS Community
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

Reply all
Reply to author
Forward
0 new messages