conduktor.io ↗

Kafka SaslAuthenticate Request Wire Format v1 — Binary Protocol Layout

What is SaslAuthenticate?

Carries the raw SASL exchange bytes after SaslHandshake, with content specific to the mechanism (GSSAPI token, OAUTHBEARER JWT, SCRAM challenge-response, etc.). The response includes session lifetime for token-based mechanisms like OAUTHBEARER, so the client knows when to re-authenticate.

Related Errors

ILLEGAL_SASL_STATE · SASL_AUTHENTICATION_FAILED

Wire Diagram

Request Header v1
message_size int32 · 4B
api_key int16 · 2B
api_version int16 · 2B
correlation_id int32 · 4B
client_id? nullable string · int16 length
SaslAuthenticateRequest v1
AuthBytes bytes

Schema & Example

Schema
{
  "AuthBytes": bytes
}
Illustrative values (not encoded bytes)
{
  "AuthBytes": "<binary>"
}