@Override
    public Principal filter(final Service service,
                            final Principal givenPrincipal,
                            final RegisteredService registeredService,
                            final Set<String> scopes,
                            final OAuth20AccessToken accessToken) throws Throwable {
        val principal = super.filter(service, givenPrincipal, registeredService, scopes, accessToken);
        if (registeredService instanceof final OidcRegisteredService oidcService) {
            return filterClaimsForOidcService(service, givenPrincipal, accessToken, principal, scopes, oidcService);
        }
        return principal;
    }
This is {@link OidcProfileScopeToAttributesFilter}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/profile/OidcProfileScopeToAttributesFilter.java