protected Optional<? extends PasswordlessUserAccount> locatePasswordlessAccount(final PasswordlessAuthenticationRequest request) {
        val providers = applicationContext.getBeansOfType(DuoSecurityMultifactorAuthenticationProvider.class).values();
        return providers
            .stream()
            .filter(Objects::nonNull)
            .filter(BeanSupplier::isNotProxy)
            .filter(provider -> provider.getDuoAuthenticationService().getProperties().isPasswordlessAuthenticationEnabled())
            .map(provider -> {
                val duoService = provider.getDuoAuthenticationService();
                return duoService
                    .getAdminApiService()
                    .flatMap(admin -> FunctionUtils.doUnchecked(() -> admin.getDuoSecurityUserAccount(request.getUsername(), false)));
            })
            .filter(Optional::isPresent)
            .map(Optional::get)
            .filter(account -> account.getStatus() != DuoSecurityUserAccountStatus.ENROLL)
            .map(duoAccount -> PasswordlessUserAccount
                .builder()
                .username(duoAccount.getUsername())
                .email(duoAccount.getEmail())
                .name(duoAccount.getFirstName())
                .phone(duoAccount.getPhone())
                .source(duoAccount.getProviderId())
                .build())
            .findFirst();
    }
This is {@link DuoSecurityPasswordlessUserAccountStore}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/passwordless/DuoSecurityPasswordlessUserAccountStore.java