mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
## What changed - Treat workload identity environment markers as an explicit authentication selection, even when another process credential is present. - Return initialization errors from `AuthManager` and propagate them through commands and services instead of continuing with an unusable authentication state. - Make `codex login status` validate workload identity, keep the TUI on an embedded app server for local workload identity, and reject workload identity in `codex mcp-server`, where it is unsupported. ## Testing - Cover workload identity precedence and partial configuration errors. - Verify login status reports an unreadable identity assertion and app-server routing enforces the supported workload identity topology. GitOrigin-RevId: efc6b6b4cd4d61652617de82aaa3d7ffc75d6618
68 lines
2.2 KiB
Rust
68 lines
2.2 KiB
Rust
pub mod auth;
|
|
pub mod auth_env_telemetry;
|
|
pub mod test_support;
|
|
pub mod token_data;
|
|
|
|
mod callback_params;
|
|
mod device_code_auth;
|
|
mod outbound_proxy;
|
|
mod pkce;
|
|
mod server;
|
|
mod success_page;
|
|
|
|
pub use callback_params::LoginCallbackResult;
|
|
pub use callback_params::LoginOnboardingEntrypoint;
|
|
pub use codex_config::types::AuthCredentialsStoreMode;
|
|
pub use codex_http_client::BuildCustomCaTransportError as BuildLoginHttpClientError;
|
|
pub use device_code_auth::DeviceCode;
|
|
pub use device_code_auth::complete_device_code_login;
|
|
pub use device_code_auth::request_device_code;
|
|
pub use device_code_auth::run_device_code_login;
|
|
pub use server::LoginServer;
|
|
pub use server::ServerOptions;
|
|
pub use server::ShutdownHandle;
|
|
pub use server::run_login_server;
|
|
pub use success_page::CODEX_OPEN_APP_URL;
|
|
pub use success_page::LoginSuccessPage;
|
|
pub use success_page::LoginSuccessPageBrand;
|
|
|
|
pub use auth::AgentIdentityAuthPolicy;
|
|
pub use auth::AuthConfig;
|
|
pub use auth::AuthDotJson;
|
|
pub use auth::AuthHeaders;
|
|
pub use auth::AuthKeyringBackendKind;
|
|
pub use auth::AuthManager;
|
|
pub use auth::AuthManagerConfig;
|
|
pub use auth::AuthManagerInitializationError;
|
|
pub use auth::CLIENT_ID;
|
|
pub use auth::CLIENT_ID_OVERRIDE_ENV_VAR;
|
|
pub use auth::CODEX_ACCESS_TOKEN_ENV_VAR;
|
|
pub use auth::CODEX_API_KEY_ENV_VAR;
|
|
pub use auth::CodexAuth;
|
|
pub use auth::ExternalAuth;
|
|
pub use auth::ExternalAuthFuture;
|
|
pub use auth::ExternalAuthRefreshContext;
|
|
pub use auth::ExternalAuthRefreshReason;
|
|
pub use auth::OPENAI_API_KEY_ENV_VAR;
|
|
pub use auth::REFRESH_TOKEN_URL_OVERRIDE_ENV_VAR;
|
|
pub use auth::REVOKE_TOKEN_URL_OVERRIDE_ENV_VAR;
|
|
pub use auth::RefreshTokenError;
|
|
pub use auth::UnauthorizedRecovery;
|
|
pub use auth::default_client;
|
|
pub use auth::enforce_login_restrictions;
|
|
pub use auth::is_workload_identity_selected;
|
|
pub use auth::load_auth_dot_json;
|
|
pub use auth::login_with_access_token;
|
|
pub use auth::login_with_api_key;
|
|
pub use auth::login_with_bedrock_api_key;
|
|
pub use auth::logout;
|
|
pub use auth::logout_with_revoke;
|
|
pub use auth::oauth_client_id;
|
|
pub use auth::read_codex_access_token_from_env;
|
|
pub use auth::read_openai_api_key_from_env;
|
|
pub use auth::save_auth;
|
|
pub use auth_env_telemetry::AuthEnvTelemetry;
|
|
pub use auth_env_telemetry::collect_auth_env_telemetry;
|
|
pub use outbound_proxy::AuthRouteConfig;
|
|
pub use token_data::TokenData;
|