mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:29:40 +01:00
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:
+1
-1
@@ -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 })
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user