@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public PrincipalProvisioner principalProvisioner(
            final CasConfigurationProperties casProperties,
            final ConfigurableApplicationContext applicationContext) {
            return BeanSupplier.of(PrincipalProvisioner.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> new SyncopePrincipalProvisioner(casProperties.getAuthn().getSyncope().getProvisioning()))
                .otherwiseProxy()
                .get();
        }
This is {@link SyncopeWebflowConfiguration}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-syncope-authentication/src/main/java/org/apereo/cas/config/SyncopeWebflowConfiguration.java