Add secret auth storage config

This commit is contained in:
celia-oai
2026-06-10 17:56:21 -07:00
parent 1a9efd473b
commit ff8f62e2a0
6 changed files with 191 additions and 1 deletions
+20
View File
@@ -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 {