Revise token cache configuration API#16326
Merged
chlowell merged 13 commits intoAzure:masterfrom Mar 6, 2021
Merged
Conversation
mccoyp
approved these changes
Mar 3, 2021
| # this eliminates the need for your application to prompt for authentication every time it runs. | ||
| # An authentication record stored by your application enables other credentials to access data from | ||
| # past authentications. If the cache contains sufficient data, this eliminates the need for your | ||
| # application to prompt for authentication every time it runs. |
Member
There was a problem hiding this comment.
I would say that maybe we should mention that allowing other credentials to access this data is optional, except that's probably outside the scope of a short sample. Also, that information is covered in the code snippet for TokenCachePersistenceOptions, so I think that should be sufficient
schaabs
approved these changes
Mar 6, 2021
iscai-msft
added a commit
that referenced
this pull request
Mar 8, 2021
…into update_ta_tests * 'master' of https://github.com/Azure/azure-sdk-for-python: Update get_package_properties.py logic for python 2.7 (#17144) update changelog (#17150) [ServiceBus] 7.1.0 Release update changelog (#17135) [ServiceBus] Object mapping support (#17080) move SetTestPipeline into its own template (#17141) Revise token cache configuration API (#16326) Fix dup cloud error (#17097) Perf tests for monitor exporter (#17067) [Communication] - Phone Number - Redesigned API (#16671) disable retry (#17078) [Key Vault] Add perf tests for certificates, keys, and secrets (#17073) [text analytics] Analyze updates for v5.1.0b6 (#17003) Add any additional claims to AuthenticationRequiredError (#17136) Fix logic in SetTestPipelineVersionInEngCommon (#17138) [Key Vault] Make test resource cleanup script asynchronous (#17032)
This was referenced Mar 9, 2021
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR replaces the current
enable_persistent_cacheandallow_unencrypted_cachekeyword arguments to credentials with a new class,TokenCachePersistenceOptions, that allows the same configuration and enables an application to isolate its persistent cache from other applications.