@Bean
        @ConditionalOnMissingBean(name = "v3ProxyValidateControllerValidationSpecification")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public CasProtocolValidationSpecification v3ProxyValidateControllerValidationSpecification(
            @Qualifier(TenantExtractor.BEAN_NAME)
            final TenantExtractor tenantExtractor,
            final ConfigurableApplicationContext applicationContext,
            @Qualifier("casAlwaysSatisfiedProtocolValidationSpecification")
            final CasProtocolValidationSpecification casAlwaysSatisfiedProtocolValidationSpecification) throws Exception {
            return BeanSupplier.of(CasProtocolValidationSpecification.class)
                .when(CONDITION_PROXY_AUTHN.given(applicationContext.getEnvironment()))
                .supply(() -> {
                    val validationChain = new ChainingCasProtocolValidationSpecification();
                    validationChain.addSpecification(casAlwaysSatisfiedProtocolValidationSpecification);
                    validationChain.addSpecification(new CasProtocolVersionValidationSpecification(
                        Set.of(CasProtocolVersions.CAS30), tenantExtractor));
                    return validationChain;
                })
                .otherwiseProxy()
                .get();
        }
This is {@link CasValidationAutoConfiguration}.

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