<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2" />

Microsoft.Identity.Client.MsalUiRequiredException

This exception class is to inform developers that UI interaction is required for authentication to succeed. It's thrown when calling AcquireTokenSilent or one of its overrides, and when the token does not exists in the cache, or the user needs to provide more content, or perform multiple factor authentication based on Azure AD policies, etc.. For more details, see https://aka.ms/msal-net-exceptions
namespace Microsoft.Identity.Client { public class MsalUiRequiredException : MsalServiceException { public UiRequiredExceptionClassification Classification { get; } public MsalUiRequiredException(string errorCode, string errorMessage); public MsalUiRequiredException(string errorCode, string errorMessage, Exception innerException); public MsalUiRequiredException(string errorCode, string errorMessage, Exception innerException, UiRequiredExceptionClassification classification); } }