Skip to content

Commit 32391f7

Browse files
authored
Add keyring/keychain cache location to readme (#451)
On Mac/Linux, the Token Cache uses the keyring/keychain functionality of the OS to save the tokens in addition to the default cache location on the file system. This was undocumented and led to tedious debugging experiences. This PR adds the location info for [macOS Keychain](https://github.com/microsoft/artifacts-credprovider/blob/dc5f4a2da94af69f444b5fd709e889dce23ac026/src/Authentication/MsalCache.cs#L79) and [Linux Keyring](https://github.com/microsoft/artifacts-credprovider/blob/dc5f4a2da94af69f444b5fd709e889dce23ac026/src/Authentication/MsalCache.cs#L88C1-L88C1).
1 parent 4cbb339 commit 32391f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ The Credential Provider will save session tokens in the following locations:
141141
- Windows: `$env:UserProfile\AppData\Local\MicrosoftCredentialProvider`
142142
- Linux/MAC: `$HOME/.local/share/MicrosoftCredentialProvider/`
143143

144+
On Linux or Mac, the tokens are additionally saved to the Keyring/Keychain under the collection name `Microsoft.Developer.IdentityService`.
145+
146+
144147
## Environment Variables
145148

146149
The Credential Provider accepts a set of environment variables. Not all of them we recommend using in production, but these two are considered safe.

0 commit comments

Comments
 (0)