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

Append default scopes for the cache lookup #6909

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

konstantin-msft
Copy link
Collaborator

Changes:

  • Append default scopes for the cache lookup.

Context:
ATS flow bypasses the cache and acquires a token from network if scopes are set to undefined or empty array due to the scope validation logic. We need to append default scopes for cache lookup to make ATS cache and network flows consistent and improve perf for clients who are not providing scopes.

@konstantin-msft konstantin-msft linked an issue Feb 20, 2024 that may be closed by this pull request
2 tasks
@konstantin-msft konstantin-msft merged commit 835d4c3 into dev Feb 20, 2024
53 of 54 checks passed
@konstantin-msft konstantin-msft deleted the cache_client_set_default_scopes branch February 20, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-common Related to msal-common package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

acquireTokenSilent always bypasses the cache when no scope is passed
3 participants