Skip to content

Commit

Permalink
No event on timeout (#1080)
Browse files Browse the repository at this point in the history
* don't send an identity event when ext jwt sign in times out

* don't set NeedsExtAuth = false if not ZITI_OK
  • Loading branch information
dovholuknf authored Jan 7, 2025
1 parent e83cfce commit d3bb112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/ziti-edge-tunnel/ziti-edge-tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);
Expand Down

0 comments on commit d3bb112

Please sign in to comment.