mirror of
https://github.com/openai/codex.git
synced 2026-11-13 22:47:20 +00:00
Honor configured proxy routes for auth refreshes (#34655)
## Why ChatGPT token refresh requests need to follow the same configured routing policy as other authentication traffic, including environments that use the system proxy. ## What changed - Require an `AuthRouteConfig` throughout login, logout, token refresh, personal access token, and agent identity flows. - Build auth HTTP clients directly from that configuration instead of falling back to a default HTTP client when routing configuration is absent. ## Testing - Add an integration test that refreshes a token through a cached system-proxy route and verifies the proxy receives the expected request. GitOrigin-RevId: 7d54ab3219939a49921c51faf08cd4c2eabca51c
This commit is contained in:
1 parent
1823c13771
commit
d4fcb2873b
24 files changed
+281
-127
No files matched your search
@@ -355,7 +355,7 @@ mod tests {
|
||||
task_id: Some("task-run-1".to_string()),
|
||||
},
|
||||
"https://auth.openai.com/api/accounts",
|
||||
/*auth_route_config*/ None,
|
||||
&codex_login::test_support::transport_default_auth_route_config(),
|
||||
)
|
||||
.await
|
||||
.expect("agent identity auth record should include task id")
|
||||
|
||||
Reference in new issue
Block a user