@ConditionalOnMissingBean(name = "authenticationRiskEvaluator")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public AuthenticationRiskEvaluator authenticationRiskEvaluator(
            @Qualifier(CasEventRepository.BEAN_NAME)
            final CasEventRepository eventRepository,
            final CasConfigurationProperties casProperties,
            final List<AuthenticationRequestRiskCalculator> riskCalculators) {
            val activeCalculators = new ArrayList<>(riskCalculators)
                .stream()
                .filter(BeanSupplier::isNotProxy)
                .toList();
            return new DefaultAuthenticationRiskEvaluator(activeCalculators, casProperties, eventRepository);
        }
This is {@link ElectronicFenceConfiguration}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/config/ElectronicFenceConfiguration.java