![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
To find passwords in libsecret you need to know what attributes to search for. These are often set by some shim but not documented. The attributes tend to vary by shim.
For git's libsecret shim the attributes are: protocol, server, user.
A worked example, the account gdt on git.example.org:
$ secret-tool search --all 'protocol' 'https' 'server' 'git.example.org' 'user' 'gdt' [/org/freedesktop/secrets/collection/login/123] label = Git: https://git.example.org/ secret = CvKxlezMsSDuR7piMBTzREJ7l8WL1T created = 2019-02-01 10:20:34 modified = 2019-02-01 10:20:34 schema = org.gnome.keyring.NetworkPassword attribute.protocol = https attribute.server = git.example.org attribute.user = gdt
Note that the "label" is mere documentation, it's the "attribute" entries which matter.