@ConditionalOnMissingBean(name = "restHttpRequestCredentialFactoryConfigurer")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public RestHttpRequestCredentialFactoryConfigurer restHttpRequestCredentialFactoryConfigurer() {
            return factory -> factory.registerCredentialFactory(new UsernamePasswordRestHttpRequestCredentialFactory());
        }
This is {@link CasCoreRestAutoConfiguration}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-rest/src/main/java/org/apereo/cas/config/CasCoreRestAutoConfiguration.java