internal

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheFilePath = func(name string) (string, error) {
	return "", errMissingImport
}

CacheFilePath returns the path to the cache file for the given name. Defining it in this package makes it available to azidentity tests.

View Source
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.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL