When connecting to the pg database 14.0 and no password (empty) is specified the following error message is returned "Something unusual has occurred to cause the driver to fail. Please report this exception. Empty value for ‘password’ "
This is a bug in the driver's handling of SCRAM authentication. We need to add a check that a non-empty password has been provided by the user before trying to use it.
The MD5 authentication handling has such a check. I think we just need to copy it into the handling for the first SCRAM authentication request message.
FYI, the driver does support SCRAM authentication, the issue here is it does not gracefully handle the situation where the server requests SCRAM authentication and the client's connection properties do not include a password.