Class DpopProofValidator

Assembly: redb.Identity.Core.dll

Z4 (RFC 9449): validates a DPoP proof JWT and reserves its jti
against the configured .

public sealed class DpopProofValidator

Inheritance

Object→DpopProofValidator

Methods

ComputeJwkThumbprint(JsonWebKey)

Computes the RFC 7638 JWK SHA-256 thumbprint, base64url-encoded.

public static string ComputeJwkThumbprint(JsonWebKey jwk)

ValidateAsync(string, string, string, string?, CancellationToken)

Validates a DPoP proof JWT bound to the given HTTP method + URL.

public Task<DpopValidationResult> ValidateAsync(string proof, string httpMethod, string httpUri, string? expectedAth = null, CancellationToken ct = default)

Constructors