Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify an auth plugin #804

Open
julienschmidt opened this issue May 23, 2018 · 1 comment
Open

Allow to specify an auth plugin #804

julienschmidt opened this issue May 23, 2018 · 1 comment

Comments

@julienschmidt
Copy link
Member

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.

@methane
Copy link
Member

methane commented Jun 21, 2018

I'm not sure, but client may be not able to override first auth method specified by server.

https://dev.mysql.com/doc/internals/en/auth-phase-fast-path.html

Assume that client wants to log in as user U and that user account uses authentication method M. The fast authentication path is used if both client and server used method M to generate authentication data in the initial handshake.

@julienschmidt julienschmidt modified the milestones: v1.5.0, v1.6.0 Sep 24, 2019
@julienschmidt julienschmidt modified the milestones: v1.6.0, v1.7.0 Apr 1, 2021
@methane methane modified the milestones: v1.7.0, v1.8.0 May 2, 2023
@methane methane removed this from the v1.8.0 milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants