zalando / go-keyring

Cross-platform keyring interface for Go
MIT License
847 stars 85 forks source link

Not possible to access objects which do not have username and service parameters #20

Open heppu opened 6 years ago

heppu commented 6 years ago

At least in with git gnome keyring helper the github credentials are stored with user, server and protocol parameter so it's not possible to access password with hard coded username and service search parameters.

I was planning to overcome this issue by extending current interface with FreeGet and FreeSet functions which take instead of username and service the map of parameters. What do you think about this approach?

petems commented 5 years ago

@heppu Did you get around to implementing this? I noticed the same when trying to get the Github.com credentials for some git stuff I was doing using credential-osxkeychain...