@Bean
    @ConditionalOnMissingBean(name = "grouperMultifactorAuthenticationTrigger")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public MultifactorAuthenticationTrigger grouperMultifactorAuthenticationTrigger(
        final CasConfigurationProperties casProperties,
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("grouperFacade")
        final GrouperFacade grouperFacade,
        @Qualifier(MultifactorAuthenticationProviderResolver.BEAN_NAME)
        final MultifactorAuthenticationProviderResolver multifactorAuthenticationProviderResolver) {
        return BeanSupplier.of(MultifactorAuthenticationTrigger.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> new GrouperMultifactorAuthenticationTrigger(casProperties,
                multifactorAuthenticationProviderResolver, grouperFacade, applicationContext))
            .otherwiseProxy()
            .get();
    }
This is {@link GrouperMultifactorAuthenticationConfiguration}.

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