@ConditionalOnMissingBean(name = ConsentEngine.BEAN_NAME)
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public ConsentEngine consentEngine(
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties,
            @Qualifier(ConsentDecisionBuilder.BEAN_NAME)
            final ConsentDecisionBuilder consentDecisionBuilder,
            final List<ConsentableAttributeBuilder> builders,
            @Qualifier(ConsentRepository.BEAN_NAME)
            final ConsentRepository consentRepository) {
            AnnotationAwareOrderComparator.sortIfNecessary(builders);
            return new DefaultConsentEngine(consentRepository, consentDecisionBuilder,
                casProperties, builders, applicationContext);
        }
This is {@link CasConsentCoreAutoConfiguration}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/config/CasConsentCoreAutoConfiguration.java