@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = "wsFederationAuthenticationServiceRegistryExecutionPlanConfigurer")
        public ServiceRegistryExecutionPlanConfigurer wsFederationAuthenticationServiceRegistryExecutionPlanConfigurer(
            final CasConfigurationProperties casProperties,
            final ConfigurableApplicationContext applicationContext) {
            return plan -> {
                val service = new CasRegisteredService();
                service.setId(RandomUtils.nextInt());
                service.markAsInternal();
                service.setEvaluationOrder(Ordered.HIGHEST_PRECEDENCE);
                service.setName(service.getClass().getSimpleName());
                service.setDescription("WS-Federation Authentication Request");
                service.setServiceId("^".concat(casProperties.getServer().getPrefix()).concat(".+"));
                plan.registerServiceRegistry(new WSFederationAuthenticationServiceRegistry(applicationContext, service));
            };
        }
This is {@link WsFederationAuthenticationConfiguration}.

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