pub enum AuthType {
Deny,
Trust,
Plain,
Md5,
ScramSha256,
}Expand description
Specifies the type of authentication or indicates the authentication method used for a connection.
Variants§
Deny
Denies a login or indicates that a connection was denied.
When used with the server, this will cause it to emulate the given authentication type, but unconditionally return a failure.
This is used for testing purposes, and to emulate timing when a user does not exist.
Trust
Trusts a login without requiring authentication, or indicates that a connection required no authentication.
When used with the server side of the handshake, this will cause it to emulate the given authentication type, but unconditionally succeed. Not compatible with SCRAM-SHA-256 as that protocol requires server and client to cryptographically agree on a password.
Plain
Plain text authentication, or indicates that plain text authentication was required.
Md5
MD5 password authentication, or indicates that MD5 password authentication was required.
ScramSha256
SCRAM-SHA-256 authentication, or indicates that SCRAM-SHA-256 authentication was required.