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

Set refreshOn in MI flows to half of token lifetime #858

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

Avery-Dunn
Copy link
Collaborator

Adjusts the refreshOn calculation in MI flows to be half of a token's lifetime (if that lifetime is greater than two hours), see #848 for details.

Additionally, this PR removes the static caching of managedIdentitySource, since determining the source is cheap but caching it statically can cause issues in test environments. This same problem that was also found in MSAL .NET and this same fix was done in AzureAD/microsoft-authentication-library-for-dotnet#4840

@Avery-Dunn Avery-Dunn requested a review from a team as a code owner August 27, 2024 00:47
@Avery-Dunn Avery-Dunn merged commit 7d9ce19 into dev Aug 30, 2024
5 checks passed
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