Class DpopResourceTokenValidator
Z4 P2.3 (RFC 9449 §7): Resource Server side validator for DPoP-bound access tokens.
Verifies that:
The supplied DPoP proof is structurally valid (signature, htm, htu, iat, jti).The proof's ath claim equals base64url(SHA-256(access_token)).The proof's JWK thumbprint matches the access-token's cnf.jkt claim
(issued by the AS via + the cnf-binding handler).
The caller owns access-token signature/audience/expiry validation — typically delegated to
OpenIddict.Validation or JsonWebTokenHandler — and passes the already-validated
JWT here for the DPoP-specific checks.
public sealed class DpopResourceTokenValidator
Inheritance
Methods
BuildChallengeHeader(string?, string?, string?, string?)
Builds the WWW-Authenticate challenge per RFC 9449 §7.1.
public static string BuildChallengeHeader(string? error = null, string? errorDescription = null, string? allowedAlgs = "ES256 RS256", string? nonce = null)
ComputeAth(string)
Computes the access token hash claim (ath) per RFC 9449 §4.2: base64url-encoded
public static string ComputeAth(string accessToken)
ValidateAsync(string, string, string, string, CancellationToken)
Validates a DPoP-bound access-token request.
public Task<DpopResourceValidationResult> ValidateAsync(string accessToken, string dpopProof, string httpMethod, string httpUri, CancellationToken ct = default)