You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create a GNOME Keyring Token Cache (Linux only) #4
Linux has a few solutions for protecting secrets. For people using the Desktop Environment(DE) GNOME, GNOME Keyring is the natural choice. While it is not as ubiquitous as DP API for Windows users or KeyChain for MacOS users, it is a good way to get fairly significant coverage of Linux developers.
Just like #1 and #3, we should implement a class to facilitate interactions with GNOME Keyring that extends SerializableTokenCache. However, unlike those platforms, as of time of writing there is no .NET support for this secret backend.
Researching a little this afternoon, it seems like it is not unprecedented for folks who are not using GNOME as their DE to take a dependency on just this package. This may prove useful for us when running in containers, or other Linux environments that have no DE whatsoever. Experimentally, I was able to install gnome-keyring with only standard repositories in both an ubuntu:disco and centos7 container.
Doing more research on this today, and here's what I've found:
The .NET implementation uses libsecret, not GNOME-keyring directly. This was a good choice, because libsecret is widely available and is more generic than just targeting GNOME-keyring.
Activity
[-]Create a GNOME Keyring Token Cache (Linux w/ GNOME only)[/-][+]Create a GNOME Keyring Token Cache (Linux only)[/+]marstr commentedon Jul 8, 2019
Doing more research on this today, and here's what I've found:
The .NET implementation uses libsecret, not GNOME-keyring directly. This was a good choice, because libsecret is widely available and is more generic than just targeting GNOME-keyring.
Sample of libsecret availability
Python Bindings
There also seem to be Python bindings already ready written, which should speed up life somewhat:
rayluo commentedon Feb 27, 2020
Some more materials that could be useful when we pick up this task (soon):