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§
Sourcefn codex_home(&self) -> PathBuf
fn codex_home(&self) -> PathBuf
Returns the Codex home directory used for auth storage.
Sourcefn cli_auth_credentials_store_mode(&self) -> AuthCredentialsStoreMode
fn cli_auth_credentials_store_mode(&self) -> AuthCredentialsStoreMode
Returns the CLI auth credential storage mode for auth loading.
Sourcefn auth_keyring_backend_kind(&self) -> AuthKeyringBackendKind
fn auth_keyring_backend_kind(&self) -> AuthKeyringBackendKind
Returns the backend to use when CLI auth keyring storage is selected.
Sourcefn forced_chatgpt_workspace_id(&self) -> Option<Vec<String>>
fn forced_chatgpt_workspace_id(&self) -> Option<Vec<String>>
Returns the workspace IDs that ChatGPT auth should be restricted to, if any.
Sourcefn chatgpt_base_url(&self) -> String
fn chatgpt_base_url(&self) -> String
Returns the ChatGPT backend base URL used for first-party backend authorization.
Sourcefn auth_route_config(&self) -> AuthRouteConfig
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".