@ConditionalOnMissingBean(name = "passwordlessAuthenticationEventExecutionPlanConfigurer")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public AuthenticationEventExecutionPlanConfigurer passwordlessAuthenticationEventExecutionPlanConfigurer(
            final ConfigurableApplicationContext applicationContext,
            @Qualifier("passwordlessTokenAuthenticationHandler") final AuthenticationHandler passwordlessTokenAuthenticationHandler,
            @Qualifier(PrincipalResolver.BEAN_NAME_PRINCIPAL_RESOLVER) final PrincipalResolver defaultPrincipalResolver) {
            return BeanSupplier.of(AuthenticationEventExecutionPlanConfigurer.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> plan -> plan.registerAuthenticationHandlerWithPrincipalResolver(passwordlessTokenAuthenticationHandler, defaultPrincipalResolver))
                .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