From d3bb112dd800f1bead7549a880456566e65233a3 Mon Sep 17 00:00:00 2001 From: dovholuknf <46322585+dovholuknf@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:52:59 -0500 Subject: [PATCH] No event on timeout (#1080) * don't send an identity event when ext jwt sign in times out * don't set NeedsExtAuth = false if not ZITI_OK --- programs/ziti-edge-tunnel/ziti-edge-tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/ziti-edge-tunnel/ziti-edge-tunnel.c b/programs/ziti-edge-tunnel/ziti-edge-tunnel.c index 2069c0a8..a5ea487a 100644 --- a/programs/ziti-edge-tunnel/ziti-edge-tunnel.c +++ b/programs/ziti-edge-tunnel/ziti-edge-tunnel.c @@ -465,7 +465,6 @@ static void on_event(const base_event *ev) { id_event.Fingerprint = strdup(id_event.Id->FingerPrint); } id_event.Id->Loaded = true; - id_event.Id->NeedsExtAuth = false; action_event controller_event = {0}; controller_event.Op = strdup("controller"); @@ -475,6 +474,7 @@ static void on_event(const base_event *ev) { } if (zev->code == ZITI_OK) { + id_event.Id->NeedsExtAuth = false; if (zev->name) { if (id_event.Id->Name != NULL && strcmp(id_event.Id->Name, zev->name) != 0) { free((char*)id_event.Id->Name);