@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public Service samlIdPCallbackService(
            @Qualifier("samlIdPServiceFactory")
            final ServiceFactory samlIdPServiceFactory,
            final CasConfigurationProperties casProperties) {
            val service = casProperties.getServer()
                .getPrefix()
                .concat(SamlIdPConstants.ENDPOINT_SAML2_SSO_PROFILE_CALLBACK);
            return samlIdPServiceFactory.createService(service);
        }
This is {@link SamlIdPEndpointsConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-saml-idp/src/main/java/org/apereo/cas/config/SamlIdPEndpointsConfiguration.java