mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Add secret auth storage config
This commit is contained in:
@@ -113,6 +113,26 @@ pub enum OAuthCredentialsStoreMode {
|
||||
Keyring,
|
||||
}
|
||||
|
||||
/// Determine how auth credentials should use keyring-backed storage.
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum AuthKeyringBackendKind {
|
||||
/// Store the serialized auth payload directly in the OS keyring.
|
||||
Direct,
|
||||
/// Store auth payloads in the local encrypted secrets file, with the file key in the OS keyring.
|
||||
Secrets,
|
||||
}
|
||||
|
||||
impl Default for AuthKeyringBackendKind {
|
||||
fn default() -> Self {
|
||||
if cfg!(windows) {
|
||||
Self::Secrets
|
||||
} else {
|
||||
Self::Direct
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub enum WindowsSandboxModeToml {
|
||||
|
||||
Reference in New Issue
Block a user