Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultTokenAcquirerFactoryImplementation use ConcurrentDictionary #2764

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

sammurrayms
Copy link
Contributor

@sammurrayms sammurrayms commented Apr 16, 2024

DefaultTokenAcquirerFactoryImplementation use ConcurrentDictionary

DefaultTokenAcquirerFactoryImplementation now supports multiple regions and more thread safe.

Description

  • The DefaultTokenAcquirerFactoryImplementation now incorporates the region within the key string, resolving a bug wherein getting a token acquirer for a particular region could inadvertently yield a token acquirer meant for a different region.
  • Additionally, the implementation now employs a ConcurrentDictionary to manage its data, enhancing thread safety in scenarios where multiple threads may attempt to create a TokenAcquirer simultaneously.

@sammurrayms sammurrayms marked this pull request as ready for review April 16, 2024 12:07
Copy link
Collaborator

@jennyf19 jennyf19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jennyf19 jennyf19 merged commit 3083a3c into AzureAD:rel/v2 Apr 16, 2024
6 checks passed
@sammurrayms
Copy link
Contributor Author

#2765

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants