MsalUiRequiredException Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This exception class is to inform developers that UI interaction is required for authentication to succeed. It's thrown when calling AcquireTokenSilent(IEnumerable<String>, IAccount) 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
public class MsalUiRequiredException : Microsoft.Identity.Client.MsalServiceException
type MsalUiRequiredException = class
inherit MsalServiceException
Public Class MsalUiRequiredException
Inherits MsalServiceException
- Inheritance
- Derived
Msal |
Initializes a new instance of the exception class with a specified error code, error message and inner exception indicating the root cause. |
Msal |
Initializes a new instance of the exception class with a specified error code, error message and inner exception indicating the root cause. |
Msal |
Initializes a new instance of the exception class with a specified error code and error message. |
Broker |
An AdditionalExceptionData property key, available when using desktop brokers. (Inherited from MsalException) |
Broker |
An AdditionalExceptionData property key, available when using desktop brokers. (Inherited from MsalException) |
Broker |
An AdditionalExceptionData property key, available when using desktop brokers. (Inherited from MsalException) |
Broker |
An AdditionalExceptionData property key, available when using desktop brokers. (Inherited from MsalException) |
Broker |
An AdditionalExceptionData property key, available when using desktop brokers. (Inherited from MsalException) |
Managed |
An AdditionalExceptionData property key, available when using managed identity. (Inherited from MsalException) |
Additional |
A property bag with extra details for this exception. (Inherited from MsalException) |
Claims |
Additional claims requested by the service. When this property is not null or empty, this means that the service requires the user to provide additional claims, such as doing two factor authentication. The are two cases:
|
Classification |
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. |
Correlation |
An ID that can used to piece up a single authentication flow. (Inherited from MsalException) |
Error |
Gets the protocol error code returned by the service or generated by the client. This is the code you can rely on for exception handling. Values for this code are typically provided in constant strings in the derived exceptions types with explanations of mitigation. (Inherited from MsalException) |
Headers |
Contains the HTTP headers from the server response that indicated an error. (Inherited from MsalServiceException) |
Is |
Indicates if the previous operation that resulted in this exception should be retried. (Inherited from MsalException) |
Response |
Raw response body received from the server. (Inherited from MsalServiceException) |
Status |
Gets the status code returned from HTTP layer. This status code is either the |
To |
Allows serialization of most values of the exception into JSON. (Inherited from MsalException) |
To |
Creates and returns a string representation of the current exception. (Inherited from MsalServiceException) |
Update |
As per discussion with Evo, AAD (Inherited from MsalServiceException) |