...
1// SASLHandshakeRequest begins the sasl authentication flow. Note that Kerberos
2// GSSAPI authentication has its own unique flow.
3SASLHandshakeRequest => key 17, max version 1
4 // Mechanism is the mechanism to use for the sasl handshake (e.g., "PLAIN").
5 //
6 // For version 0, if this mechanism is supported, it is expected that the
7 // client immediately authenticates using this mechanism. Note that the
8 // only mechanism exclusive to v0 is PLAIN.
9 //
10 // For version 1, if the mechanism is supported, the next request to issue
11 // is SASLHandshakeRequest.
12 Mechanism: string
13
14// SASLHandshakeResponse is returned for a SASLHandshakeRequest.
15SASLHandshakeResponse =>
16 // ErrorCode is non-zero for ILLEGAL_SASL_STATE, meaning a sasl handshake
17 // is not expected at this point in the connection, or UNSUPPORTED_SASL_MECHANISM,
18 // meaning the requested mechanism is not supported.
19 ErrorCode: int16
20 // SupportedMechanisms is the list of mechanisms supported if this request
21 // errored.
22 SupportedMechanisms: [string]
View as plain text