@Override
    public boolean shouldParticipateInSso(final RegisteredService registeredService, final AuthenticationAwareTicket ticketState) {
        val authentication = ticketState.getAuthentication();
        val participation = doPrincipalAttributesAllowParticipationInSso(authentication.getPrincipal().getAttributes())
            || doPrincipalAttributesAllowParticipationInSso(authentication.getAttributes());

        if (!participation) {
            LOGGER.debug("""
                No SSO participation is allowed since none of the defined attributes [{}] match authentication/principal attributes
                """.stripIndent(), attributes);
            return false;
        }
        return true;
    }
This is {@link AttributeBasedRegisteredServiceSingleSignOnParticipationPolicy}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/AttributeBasedRegisteredServiceSingleSignOnParticipationPolicy.java