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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user