package internal
import "github.com/Azure/azure-sdk-for-go/sdk/azidentity/internal"
Index ¶
Functions ¶
func ExportReplace ¶
func ExportReplace(c Cache, cae bool) (cache.ExportReplace, error)
ExportReplace returns an implementation satisfying MSAL's ExportReplace interface. It's a function instead of a method on Cache so packages in azidentity and azidentity/cache can call it while applications can't. "cae" declares whether the caller intends this implementation to store CAE tokens.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents a persistent cache that makes authentication data available across processes. Construct one with github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache.New. This module's persistent user authentication example shows how to use a persistent cache to reuse logins across application runs.
func NewCache ¶
func NewCache(factory func(cae bool) (cache.ExportReplace, error)) Cache
NewCache is the constructor for Cache. It takes a factory instead of an instance because it doesn't know whether the Cache will store both CAE and non-CAE tokens.
Source Files ¶
- Version
- v1.8.0-beta.1
- Published
- Jul 17, 2024
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 31 minutes ago –
Tools for package owners.