Language

TokenAcquisitionFailureDetails Class

Definition

Diagnostic details about a failed token-acquisition attempt, mirroring fields exposed by the underlying token-service exception.

public sealed class TokenAcquisitionFailureDetails
type TokenAcquisitionFailureDetails = class
Public NotInheritable Class TokenAcquisitionFailureDetails
Inheritance
TokenAcquisitionFailureDetails

Remarks

All members are diagnostic only. Do not program against specific values of SubError, ErrorCode, or ServiceErrorCodes; they are set by the token service and may change without notice.

Constructors

Name Description
TokenAcquisitionFailureDetails()

Properties

Name Description
Claims

Claims challenge returned by the token service, when available.

CorrelationId

Correlation id associated with the failing request.

ErrorCode

Token-service error code (for example an OAuth error code or an ESTS error code). Mirrors MsalServiceException.ErrorCode when MSAL is the underlying acquirer.

ServiceErrorCodes

The raw STS-specific error codes returned by the token service (for example the numeric AADSTS codes) that further refine ErrorCode. Mirrors MsalServiceException.ErrorCodesForLogging when MSAL is the underlying acquirer; diagnostic only.

StatusCode

HTTP status code returned by the token endpoint, when available.

SubError

Server-emitted sub-error code refining ErrorCode (for example consent_required, bad_token, protection_policy_required); diagnostic only.

Applies to