Closed
Description
@sidorares , I raise this issue to talk about the pluggable auth plugin mechanism design.
Your mysql2 have a design
const conn = mysql.createClient({
authPlugins: {
some_custom_plugin: (data, cb) => { /* ... * /},
// mysql_native_plugin and sha256_password_plugin automaticlly merged to here unless you do something like
// mysql_native_plugin: null
// 'mysql_clear_password' not enabled by default:
mysql_clear_password: mysql.authPlugins.mysql_clear_password
},
connectAuthPluginName: 'mysql_native_password' // this would be default, but if you need to start with sha256_password_plugin for example you need to put this option
})
Which describe in documented here: https://github.com/sidorares/node-mysql2/blob/master/documentation/Authentication-Switch.md
I also want to add the pluggable auth plugin mechanism, and want to let the API is same. What's your decision on mysql2? If you like, could we talk about the auth plugin mechanism design here?