Open
Description
currently only allowed connect method initially is mysql_native_password
. Some servers can potentially prefer to start with custom auth immediately, instead of rejecting mysql_native_password
and doing AUTH_SWITH_HANDLER sequence afterwards. Also some servers can be configured to allow 'plugin based auth' but not 'auth switch request' - those are two different capabilities flags
- respect handshake packet plugin name
- deprecate
authSwitchHandler
and rename it to beauthPluginHandler
- provide default handler for
mysql_native_password
also need to think of something to make it easy to chain handlers:
const mysqlIamAuth = require('mysql-iam-auth'); // imaginary, does not exist
const mysqMyCustomAuth = require('@internal/customauth');
const pool = mysql2.createPool({
authPluginHandler: combineAuthHandlers(mysqlIamAuth, mysqMyCustomAuth)
})
Metadata
Metadata
Assignees
Labels
No labels