Open
@julienschmidt

Description

Allow users to specify a auth plugin in the DSN which is then used initially instead of the server's default auth plugin. Doing so can eliminate 1 roundtrip during the handshake.

Example: The servers default auth plugin is caching_sha2_password but the requested user is authenticated via PAM. Thus using mysql_cleartext_password or dialog (#803) must be used on the client-side. Currently the driver attempts authentication using caching_sha2_password first. The server then tells the driver to switch to mysql_cleartext_password or dialog.