trilogy-libraries / trilogy

Trilogy is a client library for MySQL-compatible database servers, designed for performance, flexibility, and ease of embedding.
MIT License
697 stars 68 forks source link

Implement support for cleartext authentication plugin #168

Closed wildmaples closed 5 months ago

wildmaples commented 5 months ago

Resolves: https://github.com/trilogy-libraries/trilogy/issues/157

The cleartext pluggable authentication is a client side plugin that can be set through the --enable-cleartext-plugin flag. We override the auth plugin received from the server inside the client, before building and sending the auth packet.

I'm not sure if people like the variable name enable_cleartext_plugin but I defaulted to that since that's the flag.

wildmaples commented 5 months ago

Thanks for the feedback everyone! Chatted with @composerinteralia on Zoom and closing this in favour of: https://github.com/trilogy-libraries/trilogy/pull/171