Class DpopOptions

Assembly: redb.Identity.Core.dll

Z4 (RFC 9449): Demonstrating Proof-of-Possession at the Application Layer.
Configures DPoP proof validation and replay prevention for the Identity server's
token endpoint. When = false, all DPoP headers are ignored
and access tokens are issued as plain bearer tokens.

Default policy: SOFT — clients MAY send a DPoP proof; absence of one yields
a normal bearer token. Per-client strict enforcement is opt-in via
ApplicationProps.RequireDpop (when present) or via
=true (server-wide).

public sealed class DpopOptions

Inheritance

Object→DpopOptions

Properties

AllowedSigningAlgorithms

Allowed JWS algorithms in DPoP proofs. RFC 9449 §4.2 mandates asymmetric

public string[] AllowedSigningAlgorithms { get; set; }

Enabled

Master switch for DPoP support (validation + cnf.jkt binding + discovery).

public bool Enabled { get; set; }

IatToleranceSeconds

Maximum age of the iat claim in seconds (clock-skew + transit tolerance).

public int IatToleranceSeconds { get; set; }

NonceLifetime

Z4 P2 (RFC 9449 §8): nonce validity window for stateless HMAC nonces. The

public TimeSpan NonceLifetime { get; set; }

NonceSigningSecret

Z4 P2 (RFC 9449 §8): override secret used to sign stateless HMAC nonces.

public string? NonceSigningSecret { get; set; }

ReplayStore

Replay-store backend selector — see .

public DpopReplayStoreOptions ReplayStore { get; set; }

RequireForAccessTokens

When true, every access-token request MUST present a valid DPoP proof

public bool RequireForAccessTokens { get; set; }

RequireNonce

Z4 P2 (RFC 9449 §8): when true, every DPoP proof MUST carry a valid

public bool RequireNonce { get; set; }