-
Notifications
You must be signed in to change notification settings - Fork 340
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
MsalClientException during AcquireTokenSilentAsync with forcerefresh true #695
Comments
Expected behavior: Issues:
Fixes:
This later causes a MultipleTokensMatchedError because the look-up is happening when it should not.
The HomeAccountId.Identifier is the same across all the tenants. PR in progress here |
fix will be out in msal2.6.1-release |
This problem still occurs (in v2.7.1) when the CCA uses a ClientAssertionCertificate instead of a clientsecret. |
@ferronsw Would you mind opening a new issue w/repro steps and logs from latest release (3.0.4-preview)? thank you. |
Thanks for confirming, @ferronsw |
name: Bug report
about: MsalClientException during AcquireTokenSilentAsync with forcerefresh true
Which Version of MSAL are you using ?
Note that to get help, you need to run the latest preview or non-preview version
For ADAL, please log issues to https://github.com/AzureAD/azure-activedirectory-library-for-dotnet
v2.5.0-preview
Which platform has the issue?
net45
What authentication flow has the issue?
Other? - please describe;
What is the identity provider ?
If B2C, what social identity did you use?
Repro
Expected behavior
A token for the requested tenant
Actual behavior
An exception -
Microsoft.Identity.Client.MsalClientException: The cache contains multiple tokens satisfying the requirements. Try to clear token cache
at Microsoft.Identity.Client.TokenCache.FindAccessTokenCommon(AuthenticationRequestParameters requestParams, String preferredEnvironmentAlias, ISet`1 environmentAliases)
at Microsoft.Identity.Client.TokenCache.d__47.MoveNext()
If force refresh is set to false, then the call returns a token for the home tenant.
Possible Solution
Additional context/ Logs / Screenshots
Add any other context about the problem here, such as logs and screebshots. Logging is described at https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/logging
The text was updated successfully, but these errors were encountered: