Azure AD Silent Token Acquisition exceptions
Alex Agranov (Collabera)
1
Reputation point
This code in our ASP.NET Core application:
result = await application.AcquireTokenSilent(scopes.Except(Scopes), account)
.WithAuthority(authority)
.ExecuteAsync();
sometimes fails with these 2 exceptions:
Microsoft.Identity.Client.MsalUiRequiredException
System.ArgumentNullException
The ArgumentNullException might be happening because the Azure AD ObjectID is null, and I have no idea why the other exception would be happening if the user had already performed 2FA before.
Could someone point me in a direction?
Sign in to answer