In my auth script I use a log file in order to keep track of the events happening on the server. I have noticed that when I try to connect to a device that I have previousely saved the password, the first attempt of the client is rejected, because it passes an empty password to the server. It automatically retries to connect, and this time it passes the saved password so the authorization finishes successfully. Maybe this is something that needs to be checked in the client code.
No that is expected because the client doesnt know that the server wants a password when it tries to use a device. The reason is historical and required for backwards compatibility for previous clients/server versions of virtualhere.
So when the client tries to use a device, the server then returns "no, a password needed" then the client sends the password it saved previously because it knows the server wants it