@ConditionalOnMissingBean(name = "restfulPasswordSynchronizationAuthenticationPostProcessor")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public AuthenticationPostProcessor restfulPasswordSynchronizationAuthenticationPostProcessor(
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties) {
            return BeanSupplier.of(AuthenticationPostProcessor.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> {
                    val properties = casProperties.getAuthn().getPasswordSync().getRest();
                    return new RestfulPasswordSynchronizationAuthenticationPostProcessor(properties);
                })
                .otherwise(AuthenticationPostProcessor::none)
                .get();
        }
This is {@link CasPasswordManagementAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-pm/src/main/java/org/apereo/cas/config/CasPasswordManagementAutoConfiguration.java