Add KID check when getting a token from cache#692
Closed
JorgeDaboub wants to merge 2 commits intoAzureAD:devfrom
Closed
Add KID check when getting a token from cache#692JorgeDaboub wants to merge 2 commits intoAzureAD:devfrom
JorgeDaboub wants to merge 2 commits intoAzureAD:devfrom
Conversation
Contributor
|
Thanks for bringing this to our attention, @JorgeDaboub . This was the same issue that we recently fixed in #717 already. Please install our
It would be great if you can let us know your test result within a day or two, because we are approaching a code-freeze period for another release. Closing for now. Please reopen if our fix won't work for you. |
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.
We have encountered an issue with how MSAL is caching Tokens that have a KID.
The issue is:
The solution:
A quick check when getting a token from cache. If a KeyID is present it should match the one provided.
I validated these changes locally and they solve the issue. For reference here is the code we use: https://github.com/Azure/azure-cli-extensions/blob/2a1898ff1b70153df2311ccb784a90751914c0b1/src/connectedk8s/azext_connectedk8s/_clientproxyutils.py#L86
We have an open ICM with more context: https://portal.microsofticm.com/imp/v3/incidents/incident/494360176/summary