@Override
    public boolean isParticipating(final SingleSignOnParticipationRequest ssoRequest) throws Throwable {
        val service = ssoRequest.getAttributeValue(Service.class.getName(), Service.class);
        val registeredService = ssoRequest.getAttributeValue(RegisteredService.class.getName(), RegisteredService.class);
        val authentication = ssoRequest.getAttributeValue(Authentication.class.getName(), Authentication.class);
        val consentRequired = consentActivationStrategy.isConsentRequired(service, registeredService,
            authentication, ssoRequest.getHttpServletRequest().orElse(null));
        return !consentRequired && super.isParticipating(ssoRequest);
    }
This is {@link SamlIdPConsentSingleSignOnParticipationStrategy}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/consent/SamlIdPConsentSingleSignOnParticipationStrategy.java