-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle get/store/erase on locked collections and items. When an item is locked, we typically get a "prompt" dbus object that we need to call the "Prompt" method on. This causes the Secret Service (gnome-keyring) to pop up a window prompting the user for the password to unlock the item. Use a Go 1.23 range/iterator function to iterate over the search results when looking up a secret. This handles the unlocked and locked results transparently, unlocking any matching locked items found. The iterator also returns only the items that match the attributes exactly. This makes the implementation of Get and Delete simpler. Bump the "go" version in `go.mod` so that we can use range functions.
- Loading branch information
Showing
2 changed files
with
157 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module foxygo.at/git-credential-fdoss | ||
|
||
go 1.22.5 | ||
go 1.23 | ||
|
||
require ( | ||
github.com/alecthomas/kong v0.9.0 | ||
|