Thanks to visit codestin.com
Credit goes to pkg.go.dev

internal

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 2 Imported by: 0

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.

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.

Jump to

Keyboard shortcuts

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