Skip to content

Commit 6ad26ae

Browse files
committed
Authentication has been revamp, permitting authentication plugin. #1696
now permits multi-authentication (in mariadb: https://mariadb.com/kb/en/create-user/#identified-viawith-authentication_plugin / mysql: https://dev.mysql.com/doc/refman/8.0/en/multifactor-authentication.html)
1 parent 76c00e3 commit 6ad26ae

14 files changed

+913
-560
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,17 @@ See [context support in the database/sql package](https://golang.org/doc/go1.8#d
537537
> The `QueryContext`, `ExecContext`, etc. variants provided by `database/sql` will cause the connection to be closed if the provided context is cancelled or timed out before the result is received by the driver.
538538
539539

540+
### Authentication Plugin System
541+
542+
The driver implements a pluggable authentication system that supports various authentication methods used by MySQL and MariaDB servers. The built-in authentication plugins include:
543+
544+
* `mysql_native_password` - The default MySQL authentication method
545+
* `caching_sha2_password` - Default authentication method in MySQL 8.0+
546+
* `mysql_clear_password` - Cleartext authentication (requires `allowCleartextPasswords=true`)
547+
* `mysql_old_password` - Old MySQL authentication (requires `allowOldPasswords=true`)
548+
* `sha256_password` - SHA256 authentication
549+
* `client_ed25519` - MariaDB Ed25519 authentication
550+
540551
### `LOAD DATA LOCAL INFILE` support
541552
For this feature you need direct access to the package. Therefore you must change the import path (no `_`):
542553
```go

0 commit comments

Comments
 (0)