3 Commits

Author SHA1 Message Date
eugene 6317917b01 pass a zt_jwt to ziti_ctrl_set_ext_token
Callers already hold the zt_jwt; the controller client copies the
encoded token and keys it by the jwt's issuer.
2026-10-12 10:08:08 -04:00
eugene f2391a6e4d include utils.h in ctrl_auth_tests for strcasecmp on MSVC
the windows-x64 test jobs (MSVC) failed to compile it.
2026-10-08 20:07:56 -04:00
eugene 51de769dc9 send secondary ext-jwt tokens to the controller, legacy auth included
legacy auth kept the secondary JWT and never sent it. It is now a header on every legacy request, and the session is refreshed as soon as it arrives.

the controller client kept the token from login, so its requests were rejected once that expired. A refreshed token now replaces it (tlsuv adds headers instead of replacing them, so the whole set is put back). The external tokens are set before the session token, so the request that setting the session token starts has them.

Add integration tests for OIDC and legacy secondary ext-jwt, with token rotation, and unit tests for the controller client's headers.

fixes #919, fixes #1158
2026-10-08 18:27:33 -04:00