@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @Bean
        @ConditionalOnMissingBean(name = "passwordlessTokenAuthenticationHandler")
        public AuthenticationHandler passwordlessTokenAuthenticationHandler(
            final ConfigurableApplicationContext applicationContext,
            @Qualifier("passwordlessPrincipalFactory") final PrincipalFactory passwordlessPrincipalFactory,
            @Qualifier(PasswordlessTokenRepository.BEAN_NAME) final PasswordlessTokenRepository passwordlessTokenRepository,
            @Qualifier(ServicesManager.BEAN_NAME) final ServicesManager servicesManager) {
            return BeanSupplier.of(AuthenticationHandler.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> new PasswordlessTokenAuthenticationHandler(null, servicesManager,
                    passwordlessPrincipalFactory, null, passwordlessTokenRepository))
                .otherwiseProxy()
                .get();
        }
This is {@link CasPasswordlessAuthenticationAutoConfiguration}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-passwordless-authentication/src/main/java/org/apereo/cas/config/CasPasswordlessAuthenticationAutoConfiguration.java