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

Correctly set buffer for expired tokens #875

Merged
merged 1 commit into from
Oct 27, 2024
Merged

Conversation

Avery-Dunn
Copy link
Collaborator

In #811 code related to refresh tokens was refactored to reduce complexity and improve readability. As part of that, logic for determining if a token was expired was moved from TokenCache to AcquireTokenSilentSupplier

However, as shown in #874 the 5 minute buffer time for expired tokens was incorrectly being subtracted instead of added. This PR fixes the issue.

@Avery-Dunn
Copy link
Collaborator Author

/azp run

@Avery-Dunn Avery-Dunn merged commit c7ed174 into dev Oct 27, 2024
5 checks passed
@bgavrilMS bgavrilMS linked an issue Oct 28, 2024 that may be closed by this pull request
@Avery-Dunn Avery-Dunn deleted the avdunn/expire-buffer-fix branch January 21, 2025 21:13
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.

[Bug] Expired tokens being returned from the cache
2 participants