Retry DPoP token requests once on use_dpop_nonce #57
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.60) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 230 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #57"
general
weight: 0.35
jeswr
Retries a DPoP token endpoint request once when the authorization server answers
use_dpop_nonce(RFC 9449 §8). The retry uses the same DPoP handle, which stores the nonce from the first response. Without it, login and refresh fail against authorization servers that require DPoP nonces.Closes only the nonce half of #28 (Jesse's comment there lists this requirement). The consent /
offline_accesspart stays open. It was first proposed in #12.h/t @jeswr: the helper follows
withDPoPNonceRetryin jeswr/solid-sdk.Changes
withDPoPNonceRetryhelper insrc/dpopNonce.ts. It retries once onoauth.isDPoPNonceError. A second nonce error or any other error propagates.oauth.process*Responsecall, because oauth4webapi throws the nonce error from the process step and stores the nonce there.try, so a nonce error does not evict the cache entry.Safety
The server refuses the nonce before it uses the grant. A refresh grant retry therefore does not reuse a rotated refresh token. The authorization code retry assumes the same, as RFC 9449 §8 implies. I did not test this against a real server.
Out of scope
offline_accessfrom #28.Notes
DPoPTokenProvider. This PR does not wait for them.