Skip to main content

AuthManagerConfig

Trait AuthManagerConfig 

Source
pub trait AuthManagerConfig {
    // Required methods
    fn codex_home(&self) -> PathBuf;
    fn cli_auth_credentials_store_mode(&self) -> AuthCredentialsStoreMode;
    fn auth_keyring_backend_kind(&self) -> AuthKeyringBackendKind;
    fn forced_chatgpt_workspace_id(&self) -> Option<Vec<String>>;
    fn chatgpt_base_url(&self) -> String;
    fn auth_route_config(&self) -> AuthRouteConfig;
}
Expand description

Configuration view required to construct a shared AuthManager.

Implementations should return the auth-related config values for the already-resolved runtime configuration. The primary implementation is codex_core::config::Config, but this trait keeps codex-login independent from codex-core.

Required Methods§

Source

fn codex_home(&self) -> PathBuf

Returns the Codex home directory used for auth storage.

Source

fn cli_auth_credentials_store_mode(&self) -> AuthCredentialsStoreMode

Returns the CLI auth credential storage mode for auth loading.

Source

fn auth_keyring_backend_kind(&self) -> AuthKeyringBackendKind

Returns the backend to use when CLI auth keyring storage is selected.

Source

fn forced_chatgpt_workspace_id(&self) -> Option<Vec<String>>

Returns the workspace IDs that ChatGPT auth should be restricted to, if any.

Source

fn chatgpt_base_url(&self) -> String

Returns the ChatGPT backend base URL used for first-party backend authorization.

Source

fn auth_route_config(&self) -> AuthRouteConfig

Returns route-selection settings for auth-owned clients.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§