@ConditionalOnMissingBean(name = "delegatedSaml2IdPSloRequestCookieGenerator")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public CasCookieBuilder delegatedSaml2IdPSloRequestCookieGenerator(
        @Qualifier(TenantExtractor.BEAN_NAME)
        final TenantExtractor tenantExtractor,
        @Qualifier(GeoLocationService.BEAN_NAME)
        final ObjectProvider<GeoLocationService> geoLocationService,
        @Qualifier("delegatedClientDistributedSessionCookieCipherExecutor")
        final CipherExecutor delegatedClientDistributedSessionCookieCipherExecutor,
        final CasConfigurationProperties casProperties) {

        val sessionReplicationCookieProps = casProperties.getAuthn().getPac4j()
            .getCore()
            .getSessionReplication()
            .getCookie();
        val logoutRequestCookie = sessionReplicationCookieProps.withPinToSession(true);
        logoutRequestCookie.setName("Saml2LogoutRequest");

        val cipherExecutorResolver = new DefaultCipherExecutorResolver(delegatedClientDistributedSessionCookieCipherExecutor, tenantExtractor,
            InterruptCookieProperties.class, bindingContext -> {
            val properties = bindingContext.value();
            val crypto = properties.getAuthn().getPac4j().getCore().getSessionReplication().getCookie().getCrypto();
            return CipherExecutorUtils.newStringCipherExecutor(crypto, DelegatedClientAuthenticationDistributedSessionCookieCipherExecutor.class);
        });
        
        val cookieValueManager = new DefaultCasCookieValueManager(
            cipherExecutorResolver,
            tenantExtractor, geoLocationService,
            DefaultCookieSameSitePolicy.INSTANCE, logoutRequestCookie);
        return CookieUtils.buildCookieRetrievingGenerator(logoutRequestCookie, cookieValueManager);
    }
This is {@link DelegatedAuthenticationSaml2IdPConfiguration}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-pac4j-saml/src/main/java/org/apereo/cas/config/DelegatedAuthenticationSaml2IdPConfiguration.java