Microsoft.Identity.Client.Extensions.Msal.Storage
Wrapper over persistence layer. Does not use cross-process locking. To add cross-process locking, wrap calls
with CrossPlatLock
public static Storage Create(StorageCreationProperties creationProperties, TraceSource logger = null)
Initializes a new instance of the Storage class.
The actual cache reading and writing is OS specific:
WindowsDPAPI encrypted file on behalf of the user. MacCache is stored in KeyChain. LinuxCache is stored in Gnome KeyRing - https://developer.gnome.org/libsecret/0.18/
Delete cache file
Read and unprotect cache data
Tries to write -> read -> clear a secret from the underlying persistence mechanism
Protect and write cache data to file. It overrides existing data.