Skip to content

PBS-32: handle auth method switch negotiation#159

Open
kamil-holubicki wants to merge 1 commit into
Percona-Lab:mainfrom
kamil-holubicki:PBS-32
Open

PBS-32: handle auth method switch negotiation#159
kamil-holubicki wants to merge 1 commit into
Percona-Lab:mainfrom
kamil-holubicki:PBS-32

Conversation

@kamil-holubicki

Copy link
Copy Markdown
Collaborator

https://perconadev.atlassian.net/browse/PBS-32

Implement AuthSwitchRequest handling when the client replies with an authentication plugin that differs from the server account plugin. The server now sends the switch request, reads the client auth switch response, updates the connection context, and continues normal authentication.

Format the auth switch plugin data through a helper so caching_sha2_password keeps the historical trailing NULL filler expected by MySQL clients, while leaving future plugins free to define their own payload shape.

https://perconadev.atlassian.net/browse/PBS-32

Implement AuthSwitchRequest handling when the client replies with an
authentication plugin that differs from the server account plugin. The
server now sends the switch request, reads the client auth switch
response, updates the connection context, and continues normal
authentication.

Format the auth switch plugin data through a helper so
caching_sha2_password keeps the historical trailing NULL filler expected
by MySQL clients, while leaving future plugins free to define their own
payload shape.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant