From c502d0143335b0cbf5d5cf94328a3d48b045bbf6 Mon Sep 17 00:00:00 2001 From: pieroviano Date: Sun, 13 Sep 2026 06:55:00 +0300 Subject: [PATCH] Record P5 review fixes in the parity plan and report - Deviations: PAR/mTLS code binding rule, assertion reuse on nonce retry, proof key hardening - Client test count --- docs/plans/duende-parity-plan.md | 3 +++ docs/reports/duende-parity-report.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/plans/duende-parity-plan.md b/docs/plans/duende-parity-plan.md index 3eecf404..7249c7bc 100644 --- a/docs/plans/duende-parity-plan.md +++ b/docs/plans/duende-parity-plan.md @@ -43,6 +43,9 @@ Baseline `dev@dd0d5d7d` (8.0.0-preview.5, fork of upstream). **Plan only — do | Nonces | Returned only with `use_dpop_nonce` errors; not issued by the validation stack | | Confidential clients | Refresh tokens not bound; no Bearer-downgrade check on refresh | | Client | One `use_dpop_nonce` retry; nonces cached per authority in memory; `dpop_jkt` not sent automatically (use `GetDPoPJsonWebKeyThumbprint`); ephemeral key lost on restart | +| Client PAR + mTLS | PAR codes aren't DPoP-bound when mTLS binding can be negotiated (a client-auth certificate is registered), since mTLS wins at the token endpoint | +| Client retry | `use_dpop_nonce` retry resends the same `client_assertion`; servers with assertion `jti` replay checks reject it | +| Review fixes | Proof key resolved from a minimal JWK (`x5c` key substitution); `alg` must match `kty`/`crv` | ## 0. Blocking — verify before coding diff --git a/docs/reports/duende-parity-report.md b/docs/reports/duende-parity-report.md index abca73f5..9d685e59 100644 --- a/docs/reports/duende-parity-report.md +++ b/docs/reports/duende-parity-report.md @@ -64,7 +64,7 @@ Legend: ✅ available · 🟢 implemented in this fork (not upstream) · ⚠️ | P5 DPoP | `0dae3a9d` `0a732595` `dbc144f5` | Server: `EnableDPoPSupport()`, `RequireDPoP()`, `RequireDPoPNonces()`, per-client `ft:dpop`, `dpop_jkt`, discovery `dpop_signing_alg_values_supported`. Validation: `DPoP` scheme, optional `IDistributedCache` replay cache. Client: `EnableDPoPTokenBinding()`, `DPoPSigningCredentials`, `CreateDPoPProofAsync`. | Opt-in. `cnf.jkt` on access tokens and public-client refresh tokens; `token_type=DPoP`. Server replay check writes one token entry per proof (token storage only). | | P10 automatic key management | `4d19d539` | New **Key** entity (EF Core `OpenIddictKeys` table, EF6, MongoDB `openiddict.keys`), `IOpenIddictKeyManager`. Server: `EnableAutomaticKeyManagement()`, `OpenIddictServerKeyRing`, `IOpenIddictServerKeyProtector` (in `OpenIddict.Server`; Data Protection implementation via `UseDataProtection()`). Local validation follows rotation. Quartz: `EnableKeyPruning()`. | Schema change for every EF user. Static keys still used, after the active auto key. `UseDataProtection()` also switches token formats unless `PreferDefaultTokenFormat()`. | -Latest runs, all green (DPoP suites from `dbc144f5`, MongoDB/Quartz/EF/core from `4d19d539`): server unit 704 · ASP.NET Core integration 1,569 · OWIN integration 1,539 · core 661 · client 175 · abstractions 1,451 · MongoDB 36 · Quartz 34 · validation 103 · validation ASP.NET Core / OWIN integration 30 / 30 · EF Core 10 · EF6 7 · Data Protection 1. +Latest runs, all green (DPoP suites from `dbc144f5`, MongoDB/Quartz/EF/core from `4d19d539`): server unit 704 · ASP.NET Core integration 1,569 · OWIN integration 1,539 · core 661 · client 182 · abstractions 1,451 · MongoDB 36 · Quartz 34 · validation 103 · validation ASP.NET Core / OWIN integration 30 / 30 · EF Core 10 · EF6 7 · Data Protection 1. ## 5. Remaining work (ordered)