@Bean
        @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public SamlProfileHandlerConfigurationContext samlProfileHandlerConfigurationContext(
            final ConfigurableApplicationContext applicationContext,
            @Qualifier(AuthenticationAttributeReleasePolicy.BEAN_NAME)
            final AuthenticationAttributeReleasePolicy authenticationAttributeReleasePolicy,
            @Qualifier("samlIdPCallbackService")
            final Service samlIdPCallbackService,
            @Qualifier("samlObjectEncrypter")
            final SamlIdPObjectEncrypter samlObjectEncrypter,
            @Qualifier("samlObjectSigner")
            final SamlIdPObjectSigner samlObjectSigner,
            @Qualifier(TicketRegistrySupport.BEAN_NAME)
            final TicketRegistrySupport ticketRegistrySupport,
            @Qualifier(OpenSamlConfigBean.DEFAULT_BEAN_NAME)
            final OpenSamlConfigBean openSamlConfigBean,
            @Qualifier(SamlRegisteredServiceCachingMetadataResolver.BEAN_NAME)
            final SamlRegisteredServiceCachingMetadataResolver defaultSamlRegisteredServiceCachingMetadataResolver,
            @Qualifier("samlIdPServiceFactory")
            final ServiceFactory samlIdPServiceFactory,
            @Qualifier(TicketRegistry.BEAN_NAME)
            final TicketRegistry ticketRegistry,
            final CasConfigurationProperties casProperties,
            @Qualifier(AuditableExecution.AUDITABLE_EXECUTION_REGISTERED_SERVICE_ACCESS)
            final AuditableExecution registeredServiceAccessStrategyEnforcer,
            @Qualifier(ServicesManager.BEAN_NAME)
            final ServicesManager servicesManager,
            @Qualifier("samlIdPTicketValidator")
            final TicketValidator samlIdPTicketValidator,
            @Qualifier("ssoSamlHttpRequestExtractor")
            final SSOSamlHttpRequestExtractor ssoSamlHttpRequestExtractor,
            @Qualifier(AuthenticationSystemSupport.BEAN_NAME)
            final AuthenticationSystemSupport authenticationSystemSupport,
            @Qualifier("samlObjectSignatureValidator")
            final SamlObjectSignatureValidator samlObjectSignatureValidator,
            @Qualifier(SingleSignOnParticipationStrategy.BEAN_NAME)
            final SingleSignOnParticipationStrategy singleSignOnParticipationStrategy,
            @Qualifier("singleLogoutServiceLogoutUrlBuilder")
            final SingleLogoutServiceLogoutUrlBuilder singleLogoutServiceLogoutUrlBuilder,
            @Qualifier("samlIdPLogoutResponseObjectBuilder")
            final Saml20ObjectBuilder samlIdPLogoutResponseObjectBuilder,
            @Qualifier("samlIdPDistributedSessionCookieGenerator")
            final CasCookieBuilder samlIdPDistributedSessionCookieGenerator,
            @Qualifier(CasCookieBuilder.BEAN_NAME_TICKET_GRANTING_COOKIE_BUILDER)
            final CasCookieBuilder ticketGrantingTicketCookieGenerator,
            @Qualifier("samlIdPDistributedSessionStore")
            final SessionStore samlIdPDistributedSessionStore,
            @Qualifier("samlProfileSamlResponseBuilder")
            final SamlProfileObjectBuilder<Response> samlProfileSamlResponseBuilder,
            @Qualifier("samlProfileSamlAttributeQueryFaultResponseBuilder")
            final SamlProfileObjectBuilder<Envelope> samlProfileSamlAttributeQueryFaultResponseBuilder,
            @Qualifier(TicketFactory.BEAN_NAME)
            final TicketFactory defaultTicketFactory,
            @Qualifier(PrincipalResolver.BEAN_NAME_ATTRIBUTE_REPOSITORY)
            final PersonAttributeDao attributeRepository,
            @Qualifier("shibbolethCompatiblePersistentIdGenerator")
            final PersistentIdGenerator shibbolethCompatiblePersistentIdGenerator,
            @Qualifier("ssoPostProfileHandlerDecoders")
            final XMLMessageDecodersMap ssoPostProfileHandlerDecoders) {
            return SamlProfileHandlerConfigurationContext.builder()
                .attributeRepository(attributeRepository)
                .samlMessageDecoders(ssoPostProfileHandlerDecoders)
                .authenticationAttributeReleasePolicy(authenticationAttributeReleasePolicy)
                .samlObjectSigner(samlObjectSigner)
                .ticketFactory(defaultTicketFactory)
                .samlObjectEncrypter(samlObjectEncrypter)
                .authenticationSystemSupport(authenticationSystemSupport)
                .servicesManager(servicesManager)
                .webApplicationServiceFactory(samlIdPServiceFactory)
                .samlRegisteredServiceCachingMetadataResolver(defaultSamlRegisteredServiceCachingMetadataResolver)
                .openSamlConfigBean(openSamlConfigBean)
                .casProperties(casProperties)
                .ticketRegistrySupport(ticketRegistrySupport)
                .singleSignOnParticipationStrategy(singleSignOnParticipationStrategy)
                .logoutResponseBuilder(samlIdPLogoutResponseObjectBuilder)
                .singleLogoutServiceLogoutUrlBuilder(singleLogoutServiceLogoutUrlBuilder)
                .samlObjectSignatureValidator(samlObjectSignatureValidator)
                .samlHttpRequestExtractor(ssoSamlHttpRequestExtractor)
                .responseBuilder(samlProfileSamlResponseBuilder)
                .ticketValidator(samlIdPTicketValidator)
                .ticketRegistry(ticketRegistry)
                .sessionStore(samlIdPDistributedSessionStore)
                .ticketGrantingTicketCookieGenerator(ticketGrantingTicketCookieGenerator)
                .samlDistributedSessionCookieGenerator(samlIdPDistributedSessionCookieGenerator)
                .registeredServiceAccessStrategyEnforcer(registeredServiceAccessStrategyEnforcer)
                .callbackService(samlIdPCallbackService)
                .applicationContext(applicationContext)
                .samlFaultResponseBuilder(samlProfileSamlAttributeQueryFaultResponseBuilder)
                .persistentIdGenerator(shibbolethCompatiblePersistentIdGenerator)
                .build();
        }
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