OAuth flows can be cancelled; discovery no longer waits for a pending login

- Only login, logout, refresh and revoke queue behind each other;
  discovery, test, userinfo and introspection run at once
- Cancel in the OAuth panel (and Cancel on the request) stops the flow,
  frees the callback port and the login lock
- Undefined variables in issuer, endpoints or client id are reported
  before any request is sent
- Keyring commands run off the UI thread, so a KWallet prompt cannot
  freeze the window
- One click on a collection opens its settings; the chevron folds it
- Until an environment is picked, local (or the first one) is active;
  the environment editor says when the shown one is not active
This commit is contained in:
2026-11-27 18:24:04 +01:00
parent e6913451e6
commit 5fc816a380
9 changed files with 194 additions and 40 deletions
+2 -2
View File
@@ -244,7 +244,7 @@ pub struct SecretStatus {
/// Where each secret of an environment currently comes from. Values are
/// returned so the UI can reveal them on demand; it masks by default.
#[tauri::command]
pub fn env_secrets(state: State<'_, AppState>, col: String, env: String) -> Res<Vec<SecretStatus>> {
pub async fn env_secrets(state: State<'_, AppState>, col: String, env: String) -> Res<Vec<SecretStatus>> {
let (e, file) = state
.with_collection(&col, |c| Ok((c.environment(&env)?, c.secrets_file(&env)?)))
.map_err(errx)?;
@@ -264,7 +264,7 @@ pub fn env_secrets(state: State<'_, AppState>, col: String, env: String) -> Res<
}
#[tauri::command]
pub fn secret_set(
pub async fn secret_set(
state: State<'_, AppState>,
col: String,
env: Option<String>,