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

Permit multi-authentication #1303

Merged
merged 1 commit into from
Apr 7, 2023
Merged

Permit multi-authentication #1303

merged 1 commit into from
Apr 7, 2023

Conversation

rusher
Copy link
Contributor

@rusher rusher commented Apr 6, 2023

Authentication switch request can result in 3 type of responses:

  • OK_Packet
  • ERR_Packet
  • another authentication switch request.

Actual implementation does not permit another authentication switch request.

This can be the case when using multiple authentication, like :

create user mysqltest1 identified via mysql_native_password as password("good") OR unix_socket;

Existing in:

Authentication switch request can result in 3 type of response:
* OK_Packet
* ERR_Packet
* another authentication switch request.

example with "create user mysqltest1 identified via mysql_native_password as password("good") OR unix_socket;" that might result with multiple authentication switch request.
since MariaDB 10.4.3 (https://mariadb.com/kb/en/create-user/#identified-viawith-authentication_plugin) and MySQL 8.0 (https://dev.mysql.com/doc/refman/8.0/en/create-user.html)

Signed-off-by: rusher <diego.dupin@gmail.com>
Copy link
Member

@bgrainger bgrainger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement!

@bgrainger bgrainger merged commit 7be4e2a into mysql-net:master Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants