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

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