linux: Fix KeePassXC integration via org.freedesktop.Secrets (#33026)
Closes #29956 Unlike GNOME Keyring, KeePassXC locks individual secrets in addition to the entire database when configured to ask for confirmation for access requests by DBus clients. As such, before the secret is read it should be unlocked by the client. Tested against both KeePassXC and GNOME Keyring, and with this patch Zed successfully logs in and fetches the API keys from the Secret Service. Release Notes: - Fixed KeePassXC integration via org.freedesktop.Secrets
This commit is contained in:
parent
ac30a8b0df
commit
67ac80bd19
1 changed files with 1 additions and 0 deletions
|
@ -491,6 +491,7 @@ impl<P: LinuxClient + 'static> Platform for P {
|
|||
let username = attributes
|
||||
.get("username")
|
||||
.context("Cannot find username in stored credentials")?;
|
||||
item.unlock().await?;
|
||||
let secret = item.secret().await?;
|
||||
|
||||
// we lose the zeroizing capabilities at this boundary,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue