<PackageReference Include="Microsoft.Identity.Client" Version="4.84.1-preview" />

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

Classification of the conditional access error, enabling you to do more actions or inform the user depending on your scenario. See https://aka.ms/msal-net-UiRequiredException for more details.

public MsalUiRequiredException(string errorCode, string errorMessage)

Initializes a new instance of the exception class with a specified error code and error message.

public MsalUiRequiredException(string errorCode, string errorMessage, Exception innerException)

Initializes a new instance of the exception class with a specified error code, error message and inner exception indicating the root cause.

public MsalUiRequiredException(string errorCode, string errorMessage, Exception innerException, UiRequiredExceptionClassification classification)

Initializes a new instance of the exception class with a specified error code, error message and inner exception indicating the root cause.