@Override
    @JsonIgnore
    public Set<String> getIncludeOnlyAttributes() {
        return this.policies
            .stream()
            .filter(BeanSupplier::isNotProxy)
            .map(RegisteredServiceConsentPolicy::getIncludeOnlyAttributes)
            .flatMap(Set::stream)
            .collect(Collectors.toCollection(LinkedHashSet::new));
    }
Add policy.

@param policy the policy
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/consent/ChainingRegisteredServiceConsentPolicy.java