@ConditionalOnMissingBean(name = "cloudDirectoryPrincipalFactory")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public PrincipalFactory cloudDirectoryPrincipalFactory() {
        return PrincipalFactoryUtils.newPrincipalFactory();
    }
This is {@link CasCloudDirectoryAuthenticationAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-cloud-directory-authentication/src/main/java/org/apereo/cas/config/CasCloudDirectoryAuthenticationAutoConfiguration.java