pub enum AuthCredentialsStoreMode {
Keyring,
File,
Auto,
}Expand description
Preferred storage backend for credentials.
Keyring: Use OS-specific secure storage (macOS Keychain, Windows Credential Manager, Linux Secret Service). This is the default as it’s the most secure option.File: Use AES-256-GCM encrypted file (requires thefile-storagefeature or custom implementation)Auto: Try keyring first, fall back to file if unavailable
Variants§
Keyring
Use OS-specific keyring service. This is the most secure option as credentials are managed by the OS and are not accessible to other users or applications.
File
Persist credentials in an encrypted file. The file is encrypted with AES-256-GCM using a machine-derived key.
Auto
Use keyring when available; otherwise, fall back to file.
Trait Implementations§
Source§impl Clone for AuthCredentialsStoreMode
impl Clone for AuthCredentialsStoreMode
Source§fn clone(&self) -> AuthCredentialsStoreMode
fn clone(&self) -> AuthCredentialsStoreMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AuthCredentialsStoreMode
Source§impl Debug for AuthCredentialsStoreMode
impl Debug for AuthCredentialsStoreMode
Source§impl Default for AuthCredentialsStoreMode
impl Default for AuthCredentialsStoreMode
Source§fn default() -> Self
fn default() -> Self
Platform-aware default:
-
macOS:
File— AES-256-GCM encrypted file with machine-derived key. Avoids macOS Keychain authorization popups that trigger on every new binary (including each release update). Users can opt intoKeyringviacredential_storage_modeinvtcode.toml. -
Linux / Windows / others:
Auto— try OS keyring (Secret Service / Windows Credential Manager, no popups), fall back to encrypted file.