Skip to content

Conversation

@keegan-caruso
Copy link
Contributor

Fixes #3078

See #3124 and #3118 for more context.

The lock isn't needed if the update is done to the config object itself, since it is a reference type, it will be an atomic update. This removes the need to keep two separate fields in sync.

@keegan-caruso keegan-caruso requested a review from a team as a code owner January 16, 2025 02:06
@keegan-caruso
Copy link
Contributor Author

@mderriey or @alex-set would either of you want to take a look at this?

@github-actions
Copy link

Summary

Summary
Generated on: 1/16/2025 - 2:24:48 AM
Coverage date: 1/16/2025 - 2:23:42 AM - 1/16/2025 - 2:24:38 AM
Parser: MultiReport (2x Cobertura)
Assemblies: 0
Classes: 0
Files: 0
Line coverage:
Covered lines: 0
Uncovered lines: 0
Coverable lines: 0
Total lines: 0
Covered branches: 0
Total branches: 0
Method coverage: Feature is only available for sponsors

Coverage

No assemblies have been covered.

Copy link
Collaborator

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

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

Super elegant!
Thanks @keegan-caruso

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:

@github-actions
Copy link

Summary

Summary
Generated on: 1/16/2025 - 6:17:12 PM
Coverage date: 1/16/2025 - 6:16:13 PM - 1/16/2025 - 6:17:08 PM
Parser: MultiReport (2x Cobertura)
Assemblies: 0
Classes: 0
Files: 0
Line coverage:
Covered lines: 0
Uncovered lines: 0
Coverable lines: 0
Total lines: 0
Covered branches: 0
Total branches: 0
Method coverage: Feature is only available for sponsors

Coverage

No assemblies have been covered.

Copy link
Collaborator

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

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

Tested locally

@jmprieur jmprieur merged commit c116563 into master Jan 17, 2025
5 checks passed
@jmprieur jmprieur deleted the kecaruso/OpenIdConnectCachingSecurityTokenProvider-locking branch January 17, 2025 19:44
@alex-set
Copy link

@mderriey or @alex-set would either of you want to take a look at this?

Sorry, I know I'm late, but it looks great to me.

This was referenced Aug 1, 2025
This was referenced Oct 31, 2025
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.

Locking behavior too strict in OpenIdConnectCachingSecurityTokenProvider, struggles with enough concurrent requests

5 participants