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
+1 -1
View File
@@ -142,5 +142,5 @@ export const oauthApi = {
run: (args: OauthArgs, what: 'login' | 'test' | 'logout' | 'refresh' | 'userinfo' | 'introspect' | 'revoke' | 'discovery') =>
invoke<{ steps: import('./types').Step[]; warnings: string[]; ok: boolean }>('oauth_run', { args, what }),
callback: (url: string) => invoke<boolean>('oauth_callback', { url }),
cancel: () => invoke<void>('oauth_cancel')
cancel: (key?: string) => invoke<number>('oauth_cancel', { key: key ?? null })
};