Add username/password login with keyring-backed credential storage

- Dual-mode auth dialog: username/password (default) + API token fallback
- Proxmox ticket-based auth via POST /access/ticket
- OS keyring integration for secure credential persistence
- Auto-open login dialog on launch when unauthenticated
- Auth state tracking with auto-refresh support
This commit is contained in:
Matt
2026-07-29 18:27:27 +00:00
parent 084b64872e
commit dbe3c8d2a1
8 changed files with 477 additions and 152 deletions
+11 -8
View File
@@ -5,28 +5,31 @@ use thiserror::Error;
pub enum Error {
#[error("Connection not found: {0}")]
ConnectionNotFound(String),
#[error("Not connected to server")]
NotConnected,
#[error("HTTP request failed: {0}")]
HttpError(#[from] reqwest::Error),
#[error("Certificate error: {0}")]
CertificateError(String),
#[error("Invalid credentials: {0}")]
InvalidCredentials(String),
#[error("Authentication failed: {0}")]
AuthError(String),
#[error("Keyring error: {0}")]
KeyringError(String),
#[error("Serialization error: {0}")]
SerializationError(String),
#[error("Invalid URL: {0}")]
InvalidUrl(String),
#[error("API error: {0}")]
ApiError(String),