@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "ldapDelegatedClientAuthenticationCredentialResolver")
    public DelegatedClientAuthenticationCredentialResolver ldapDelegatedClientAuthenticationCredentialResolver(
        final CasConfigurationProperties casProperties,
        final ConfigurableApplicationContext applicationContext,
        @Qualifier(DelegatedClientAuthenticationConfigurationContext.BEAN_NAME)
        final DelegatedClientAuthenticationConfigurationContext configContext) {
        return BeanSupplier.of(DelegatedClientAuthenticationCredentialResolver.class)
            .when(BeanCondition.on("cas.authn.pac4j.profile-selection.ldap[0].ldap-url").given(applicationContext.getEnvironment()))
            .supply(() -> new LdapDelegatedClientAuthenticationCredentialResolver(configContext))
            .otherwiseProxy()
            .get();
    }
This is {@link DelegatedAuthenticationProfileSelectionConfiguration}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/config/DelegatedAuthenticationProfileSelectionConfiguration.java