-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign persistent token cache API (#23114)
- Loading branch information
Showing
29 changed files
with
690 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,13 @@ var ( | |
errInvalidTenantID = errors.New("invalid tenantID. You can locate your tenantID by following the instructions listed here: https://learn.microsoft.com/partner-center/find-ids-and-domain-names") | ||
) | ||
|
||
// TokenCachePersistenceOptions contains options for persistent token caching | ||
type TokenCachePersistenceOptions = internal.TokenCachePersistenceOptions | ||
// 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 logins | ||
// across application runs. | ||
// | ||
// [persistent user authentication example]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/[email protected]#example-package-PersistentUserAuthentication | ||
type Cache = internal.Cache | ||
|
||
// setAuthorityHost initializes the authority host for credentials. Precedence is: | ||
// 1. cloud.Configuration.ActiveDirectoryAuthorityHost value set by user | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.