Skip to main content

codex_login/
lib.rs

1pub mod auth;
2pub mod auth_env_telemetry;
3pub mod test_support;
4pub mod token_data;
5
6mod device_code_auth;
7mod outbound_proxy;
8mod pkce;
9mod server;
10mod success_page;
11
12pub use codex_config::types::AuthCredentialsStoreMode;
13pub use codex_http_client::BuildCustomCaTransportError as BuildLoginHttpClientError;
14pub use device_code_auth::DeviceCode;
15pub use device_code_auth::complete_device_code_login;
16pub use device_code_auth::request_device_code;
17pub use device_code_auth::run_device_code_login;
18pub use server::LoginServer;
19pub use server::ServerOptions;
20pub use server::ShutdownHandle;
21pub use server::run_login_server;
22pub use success_page::CODEX_OPEN_APP_URL;
23pub use success_page::LoginSuccessPage;
24pub use success_page::LoginSuccessPageBrand;
25
26pub use auth::AgentIdentityAuthPolicy;
27pub use auth::AuthConfig;
28pub use auth::AuthDotJson;
29pub use auth::AuthHeaders;
30pub use auth::AuthKeyringBackendKind;
31pub use auth::AuthManager;
32pub use auth::AuthManagerConfig;
33pub use auth::CLIENT_ID;
34pub use auth::CLIENT_ID_OVERRIDE_ENV_VAR;
35pub use auth::CODEX_ACCESS_TOKEN_ENV_VAR;
36pub use auth::CODEX_API_KEY_ENV_VAR;
37pub use auth::CodexAuth;
38pub use auth::ExternalAuth;
39pub use auth::ExternalAuthFuture;
40pub use auth::ExternalAuthRefreshContext;
41pub use auth::ExternalAuthRefreshReason;
42pub use auth::OPENAI_API_KEY_ENV_VAR;
43pub use auth::REFRESH_TOKEN_URL_OVERRIDE_ENV_VAR;
44pub use auth::REVOKE_TOKEN_URL_OVERRIDE_ENV_VAR;
45pub use auth::RefreshTokenError;
46pub use auth::UnauthorizedRecovery;
47pub use auth::default_client;
48pub use auth::enforce_login_restrictions;
49pub use auth::load_auth_dot_json;
50pub use auth::login_with_access_token;
51pub use auth::login_with_api_key;
52pub use auth::login_with_bedrock_api_key;
53pub use auth::logout;
54pub use auth::logout_with_revoke;
55pub use auth::oauth_client_id;
56pub use auth::read_codex_access_token_from_env;
57pub use auth::read_openai_api_key_from_env;
58pub use auth::save_auth;
59pub use auth_env_telemetry::AuthEnvTelemetry;
60pub use auth_env_telemetry::collect_auth_env_telemetry;
61pub use outbound_proxy::AuthRouteConfig;
62pub use token_data::TokenData;