mirror of
https://github.com/openziti/ziti-sdk-c.git
synced 2026-09-10 16:55:38 +00:00
6bb231c905
- adds OIDC_REFRESH_TRANSIENT_FAIL status so oidc_client can hand transient refresh failures (5xx, timeout, connection reset) up to the auth method instead of scheduling its own retry against the same dead URL - cancels any stuck in-flight refresh in oidc_client_refresh rather than returning UV_EALREADY, so a force-refresh actually starts a fresh request when the previous one is wedged on a dropped TCP connection - adds oidc_auth_merge_ctrl_urls, which extends the auth method's URL rotation pool with normalized scheme://host[:port] entries from a list of controller URLs (deduplicating by normalized form) - seeds the rotation pool from ztx->config.controllers in version_pre_auth_cb (pre-auth) and from apis.oidc in ctrl_list_cb (post-auth) so initial auth and subsequent refreshes can spread across all known HA controllers, not just the one whose /version was queried at startup - adds rotate_and_refresh in oidc_auth.c which advances cur_url on transient failure, reconfigures the OIDC client at the next controller, and applies an exponential backoff once a full rotation has been exhausted - cleans up the new refresh_retry_timer on auth_stop and auth_free