feat(DPoP): check requests and 401 on failure

This commit is contained in:
Edouard Vanbelle
2026-08-08 19:55:18 +02:00
parent ed99b08e62
commit 8d6e03a4bb
11 changed files with 283 additions and 63 deletions
+8
View File
@@ -456,6 +456,14 @@ pub struct CurrentUser {
pub email: Arc<str>,
#[schema(value_type = String)]
pub role: SmolStr,
/// DPoP session-binding thumbprint threaded from the JWT's
/// RFC 9449 §5 `cnf.jkt` claim. `None` for unbound sessions
/// (app passwords, NC clients, pre-DPoP). The DPoP middleware
/// reads it to enforce "bound → proof required" from an
/// already-validated token — no session-row lookup on the
/// hot path (see `docs/plan/dpop.md` Gate 9).
#[serde(skip)]
pub dpop_jkt: Option<String>,
}
// ============================================================================