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 package's persistent user authentication example shows how to use a persistent cache to reuse user logins across application runs. For service principal credential types such as [ClientCertificateCredential], simply set the Cache field on the credential options.
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.9.0 (latest)
- Published
- Apr 8, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 10 hours ago –
Tools for package owners.