Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportReplace ¶ added in v1.8.0
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 ¶ added in v1.8.0
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.