protected Optional<? extends PasswordlessUserAccount> locatePasswordlessAccount(
        final PasswordlessAuthenticationRequest request) {
        val results = SyncopeUtils.syncopeUserSearch(properties, request.getUsername());
        if (results.size() == 1) {
            val syncopeUser = results.getFirst();
            return Optional.of(PasswordlessUserAccount
                .builder()
                .username(getPasswordlessUserAttribute(syncopeUser, "username"))
                .name(getPasswordlessUserAttribute(syncopeUser, "name"))
                .email(getPasswordlessUserAttribute(syncopeUser, "email"))
                .phone(getPasswordlessUserAttribute(syncopeUser, "phoneNumber"))
                .requestPassword(BooleanUtils.toBoolean(getPasswordlessUserAttribute(syncopeUser, "requestPassword")))
                .multifactorAuthenticationEligible(TriStateBoolean.fromBoolean(BooleanUtils.toBoolean(getPasswordlessUserAttribute(syncopeUser, "multifactorAuthenticationEligible"))))
                .delegatedAuthenticationEligible(TriStateBoolean.fromBoolean(BooleanUtils.toBoolean(getPasswordlessUserAttribute(syncopeUser, "delegatedAuthenticationEligible"))))
                .allowSelectionMenu(BooleanUtils.toBoolean(getPasswordlessUserAttribute(syncopeUser, "allowSelectionMenu")))
                .build()
            );
        }
        return Optional.empty();
    }
This is {@link SyncopePasswordlessUserAccountStore}.

@author Misagh Moayyed
@since 7.3.0
support/cas-server-support-syncope-authentication/src/main/java/org/apereo/cas/syncope/passwordless/SyncopePasswordlessUserAccountStore.java