@ConditionalOnMissingBean(name = "casTwilioMultifactorHttpRequestMultifactorAuthenticationProviderBypass")
    @Bean
    @CasTwilioMultifactorBypassEvaluator
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public MultifactorAuthenticationProviderBypassEvaluator casTwilioMultifactorHttpRequestMultifactorAuthenticationProviderBypass(
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties) {
        val twilio = casProperties.getAuthn().getMfa().getTwilio();
        val props = twilio.getBypass();
        val bypassActive = StringUtils.isNotBlank(props.getHttpRequestHeaders()) || StringUtils.isNotBlank(props.getHttpRequestRemoteAddress());
        return BeanSupplier.of(MultifactorAuthenticationProviderBypassEvaluator.class)
            .when(bypassActive)
            .supply(() -> new HttpRequestMultifactorAuthenticationProviderBypassEvaluator(props, twilio.getId(), applicationContext))
            .otherwiseProxy()
            .get();
    }
This is {@link CasTwilioMultifactorAuthenticationMultifactorProviderBypassConfiguration}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-twilio-mfa/src/main/java/org/apereo/cas/config/CasTwilioMultifactorAuthenticationMultifactorProviderBypassConfiguration.java