Skip to main content

reauthentication_begins

Function reauthentication_begins 

Source
pub fn reauthentication_begins(
    expiry_ms: Option<i64>,
    now_ms: i64,
    last_start_ms: Option<i64>,
) -> bool
Expand description

Whether a SaslHandshake on a session that expires at expiry_ms begins a KIP-368 re-authentication.

Kafka’s KafkaChannel.maybeBeginServerReauthentication decides it: the session must have an expiry, and the last re-authentication on the connection, if any, must have started MIN_REAUTH_INTERVAL_MS or more before now_ms.