You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app is in production, I haven't upgraded MSAL, but started seeing this issue
Issue description and reproduction steps
User is using a service account that is exempt of doing MFA. AcquireTokenSilentAsync will fail with this error:
MSAL.Desktop.4.59.0.0.MsalUiRequiredException:
2024/04/2203:34:52 PM ErrorCode: wam_no_account_for_id
2024/04/2203:34:52 PM Microsoft.Identity.Client.MsalUiRequiredException: Could not find a WAM account for the selected user. Error: Status: AccountNotFound
2024/04/2203:34:52 PM Context: Account with id '(pii)' not found
2024/04/2203:34:52 PM Tag: 0x1f5537802024/04/2203:34:52 PM at Microsoft.Identity.Client.Internal.Requests.Silent.SilentRequest.<ExecuteAsync>d__5.MoveNext()
2024/04/2203:34:52 PM ---End of stack trace from previous location where exception was thrown ---2024/04/2203:34:52 PM at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2024/04/2203:34:52 PM at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2024/04/2203:34:52 PM at Microsoft.Identity.Client.Internal.Requests.RequestBase.<RunAsync>d__12.MoveNext()
2024/04/2203:34:52 PM ---End of stack trace from previous location where exception was thrown ---2024/04/2203:34:52 PM at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2024/04/2203:34:52 PM at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2024/04/2203:34:52 PM at Microsoft.Identity.Client.ApiConfig.Executors.ClientApplicationBaseExecutor.<ExecuteAsync>d__2.MoveNext()
2024/04/2203:34:52 PM ---End of stack trace from previous location where exception was thrown ---2024/04/2203:34:52 PM at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2024/04/2203:34:52 PM at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2024/04/2203:34:52 PM at Microsoft.Engineering.VPackLite.Auth.NetworkCredentialProvider.<AcquireEntraIDTokenAsync>d__22.MoveNext()
2024/04/2203:34:52 PM StatusCode: 02024/04/2203:34:52 PM ResponseBody:
2024/04/2203:34:52 PM Headers:
But if we use IWA, it will succeed. This is problematic because IWA doesn't read from the Token Cache so we need to implement a custom cache for that scenario.
Relevant code snippets
// This is how we invoke Acquire Token Silent with WAMthis.App.AcquireTokenSilent(scopes, existingAccount).WithCorrelationId(this.correlationId).ExecuteAsync();// This is how we invoke Acquire Token with IWAthis.App.AcquireTokenByIntegratedWindowsAuth(scopes).WithCorrelationId(this.correlationId).ExecuteAsync(CancellationToken.None);
Expected behavior
No response
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response
The text was updated successfully, but these errors were encountered:
Library version used
4.59.0
.NET version
.NET Standard 2.0
Scenario
PublicClient - desktop app
Is this a new or an existing app?
The app is in production, I haven't upgraded MSAL, but started seeing this issue
Issue description and reproduction steps
User is using a service account that is exempt of doing MFA. AcquireTokenSilentAsync will fail with this error:
But if we use IWA, it will succeed. This is problematic because IWA doesn't read from the Token Cache so we need to implement a custom cache for that scenario.
Relevant code snippets
Expected behavior
No response
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response
The text was updated successfully, but these errors were encountered: