@Bean
        @ConditionalOnAvailableEndpoint
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public CasServerDiscoveryProfileEndpoint discoveryProfileEndpoint(
            final CasConfigurationProperties casProperties,
            final ConfigurableApplicationContext applicationContext,
            @Qualifier(CasServerProfileRegistrar.BEAN_NAME)
            final ObjectProvider<CasServerProfileRegistrar> casServerProfileRegistrar) {
            return new CasServerDiscoveryProfileEndpoint(casProperties, applicationContext, casServerProfileRegistrar);
        }
This is {@link CasDiscoveryProfileAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-discovery-profile/src/main/java/org/apereo/cas/config/CasDiscoveryProfileAutoConfiguration.java