package internal
import "github.com/Azure/azure-sdk-for-go/sdk/azidentity/internal"
Index ¶
Variables ¶
CacheFilePath returns the path to the cache file for the given name. Defining it in this package makes it available to azidentity tests.
var NewCache = func(o *TokenCachePersistenceOptions, enableCAE bool) (cache.ExportReplace, error) { if o == nil { return nil, nil } return nil, errMissingImport }
NewCache constructs a persistent token cache when "o" isn't nil. Applications that intend to use a persistent cache must first import the cache module, which will replace this function with a platform-specific implementation.
Types ¶
type TokenCachePersistenceOptions ¶
type TokenCachePersistenceOptions struct { // AllowUnencryptedStorage controls whether the cache should fall back to storing its data in plain text // when encryption isn't possible. Setting this true doesn't disable encryption. The cache always attempts // encryption before falling back to plaintext storage. AllowUnencryptedStorage bool // Name identifies the cache. Set this to isolate data from other applications. Name string }
TokenCachePersistenceOptions contains options for persistent token caching
Source Files ¶
- Version
- v1.6.0-beta.3
- Published
- Apr 9, 2024
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 11 hours ago –
Tools for package owners.