Table of Contents

Class MsalClaimsChallengeException

Namespace
Microsoft.Identity.Client
Assembly
Microsoft.Identity.Client.dll

This exception indicates that claims have been returned from the endpoint that need to be resolved. This can be achieved by using them in the next authentication request. See Conditional Access and claims challenges. See Handling multifactor auth (MFA), Conditional Access, and incremental consent.

public class MsalClaimsChallengeException : MsalUiRequiredException, ISerializable
Inheritance
MsalClaimsChallengeException
Implements
Inherited Members

Constructors

MsalClaimsChallengeException(string, string)

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

public MsalClaimsChallengeException(string errorCode, string errorMessage)

Parameters

errorCode string

The error code returned by the service or generated by the client. This is the code you can rely on for exception handling.

errorMessage string

The error message that explains the reason for the exception.

MsalClaimsChallengeException(string, string, Exception)

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

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

Parameters

errorCode string

The error code returned by the service or generated by the client. This is the code you can rely on for exception handling.

errorMessage string

The error message that explains the reason for the exception.

innerException Exception

Represents the root cause of the exception.

MsalClaimsChallengeException(string, string, Exception, UiRequiredExceptionClassification)

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

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

Parameters

errorCode string

The error code returned by the service or generated by the client. This is the code you can rely on for exception handling.

errorMessage string

The error message that explains the reason for the exception.

innerException Exception

Represents the root cause of the exception.

classification UiRequiredExceptionClassification

A higher level description for this exception, that allows handling code to understand what type of action it needs to take to resolve the issue.