Table of Contents

Class DPoPProofValidationResult

Namespace
Auth0.AspNetCore.Authentication.Api.DPoP
Assembly
Auth0.AspNetCore.Authentication.Api.dll

Represents the result of validating a DPoP proof. Contains error information, validated claims, and key details.

public class DPoPProofValidationResult
Inheritance
DPoPProofValidationResult
Inherited Members

Properties

AccessTokenHash

The hash of the access token, if present in the DPoP proof.

public string? AccessTokenHash { get; set; }

Property Value

string

Error

The error code if validation failed, otherwise null.

public string? Error { get; }

Property Value

string

ErrorDescription

A human-readable description of the error, if any.

public string? ErrorDescription { get; }

Property Value

string

HasError

Indicates whether an error occurred during DPoP proof validation.

public bool HasError { get; }

Property Value

bool

JsonWebKey

The JSON Web Key (JWK) used in the DPoP proof, if available.

public string? JsonWebKey { get; set; }

Property Value

string

JsonWebKeyThumbprint

The thumbprint of the JSON Web Key, if available.

public string? JsonWebKeyThumbprint { get; set; }

Property Value

string

ProofClaims

Claims extracted from the validated DPoP proof.

public IDictionary<string, object>? ProofClaims { get; }

Property Value

IDictionary<string, object>

Methods

SetError(string?, string?)

Sets the error state and details for the validation result.

public void SetError(string? error, string? description)

Parameters

error string

The error code.

description string

A human-readable error description.