Key manager is a POC library that can be used to store and retrieve keys/tokens securely on Linux, Windows and MacOS (Not supported).
On Linux, it uses Kernel Key Retention Service to cache authentication tokens in the kernel for use by userspace apps.
Windows DPAPI is used to protect and unprotect data before writing it to and reading it from a file.
To be implemented.
- Clone project from GitHub to your computer (Windows or Linux).
- Install DotNet core on your computer if not yet installed.
- Navigate to the cloned project and run
dotnet build -c Release -r win10-x64for Windows anddotnet build -c Release -r ubuntu.16.10-x64for Ubuntu. This builds the projects, and generates an executable. - Navigate to
KeyManager\TestConsoleApp\bin\and findTestConsoleApp.exeon Windows andTestConsoleAppon Ubuntu. - Run
.\TestConsoleApp.exe -c {CLIENT-ID} -d {CACHE_FILE_DIR}on Windows and.\TestConsoleApp -c {CLIENT-ID} -d {CACHE_FILE_DIR}on Ubuntu. - You should authenticate once, and subsequent calls will use the token cache.