mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why `codex login --device-auth` still used browser authorization when config server sign-in was required, preventing the selected device-code flow from being used there. ## What changed - Use device authorization for config server sign-in when `--device-auth` is selected, display the verification URL and code, and report a missing `config_server.oauth.device_authorization_url` explicitly. - Include the configured OAuth `resource` in device authorization and token polling requests. - Reserve sign-in per credential across Codex processes, reuse saved grants, and release the reservation when sign-in completes or is canceled. - Report config server sign-in failures with guidance specific to `config_server.oauth` and the credential store. ## Testing Add or extend tests for the device-code prompt, config server failure messages, OAuth resource parameters, policy reload after credential replacement, and rejection of concurrent sign-in with retry after cancellation. GitOrigin-RevId: 013176d0e10128c347dd072b818e22b5038a2791
27 lines
968 B
Rust
27 lines
968 B
Rust
//! Cloud-hosted configuration data for Codex.
|
|
//!
|
|
//! This crate owns transport, caching, and refresh behavior for cloud-delivered
|
|
//! config data. Parsing and composition remain in `codex-config`.
|
|
|
|
mod backend;
|
|
mod bundle_loader;
|
|
mod cache;
|
|
mod chatgpt;
|
|
mod config_server;
|
|
mod config_source;
|
|
mod metrics;
|
|
mod service;
|
|
mod validation;
|
|
|
|
pub use bundle_loader::ConfigServerLoginMethod;
|
|
pub use bundle_loader::chatgpt_config_bundle_loader;
|
|
pub use bundle_loader::chatgpt_config_bundle_loader_for_storage;
|
|
pub use bundle_loader::chatgpt_config_bundle_loader_for_storage_without_cache;
|
|
pub use bundle_loader::ensure_config_server_login;
|
|
pub use bundle_loader::managed_config_auth_manager;
|
|
pub use bundle_loader::managed_config_bundle_loader;
|
|
pub use bundle_loader::managed_config_bundle_loader_for_auth;
|
|
pub use bundle_loader::managed_config_bundle_loader_for_storage;
|
|
pub use config_server::config_server_auth_manager;
|
|
pub use config_server::config_server_bundle_loader;
|