Share via


TokenFailureKind Enum

Definition

An enum that specifies the kind of token failure that occurred.

public enum class TokenFailureKind
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Security.Authentication.OAuth.OAuthContract, 65536)]
enum class TokenFailureKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Security.Authentication.OAuth.OAuthContract), 65536)]
public enum TokenFailureKind
var value = Microsoft.Security.Authentication.OAuth.TokenFailureKind.errorResponse
Public Enum TokenFailureKind
Inheritance
TokenFailureKind
Attributes

Fields

Name Value Description
ErrorResponse 0

The server responded with an error response as described by RFC 6749 section 5.2. This means that the failure object has an Error string and possibly other specified properties.

HttpFailure 1

The HTTP POST request failed. See the ErrorCode property for more details about the reason.

InvalidResponse 2

The server responded, but its response was improperly formatted. This could be that the server did not send the response as JSON, the response JSON string was improperly formatted, or the response JSON contained unexpected object types (e.g. a number when a string is expected, etc.).

Applies to