@qualithm/kafka-client - v0.1.6
    Preparing search index...

    Type Alias SaslAuthenticator

    A SASL authenticator that produces auth tokens for the SaslAuthenticate API.

    All mechanisms use the async interface — single-step mechanisms like PLAIN simply resolve immediately in stepAsync.

    type SaslAuthenticator = {
        initialAuthBytes: () => Uint8Array;
        mechanism: string;
        stepAsync: (serverBytes: Uint8Array) => Promise<Uint8Array | null>;
    }
    Index

    Properties

    initialAuthBytes: () => Uint8Array

    Create the initial client auth bytes. For single-step mechanisms (PLAIN) this is the only call needed. For multi-step mechanisms (SCRAM) this returns the client-first message.

    mechanism: string

    The mechanism name (e.g. "PLAIN", "SCRAM-SHA-256").

    stepAsync: (serverBytes: Uint8Array) => Promise<Uint8Array | null>

    Process a server challenge and produce the next client response. Returns null when authentication is complete (final server message validated).

    If the server challenge is invalid.