When must a DPoP proof's nonce claim match a server-provided nonce?
nonce claim matches the server-provided nonce valueRFC 9449 §4.3MUSTRoles: authorization_server, resource_server
Requirement as recorded in the ProtocolSoup registry
If the server provided a nonce value to the client, the nonce claim matches the server-provided nonce value.
Read §4.3 in RFC 9449Self-test verdict
PassCommit 00bac3fEvaluated
This is ProtocolSoup's result against its own implementation at the commit shown. It is not a certification of ProtocolSoup or of any other product.
Captured from production
Captured Commit 00bac3f
Captured from the deployed ProtocolSoup at the commit shown. Every request and response is shown exactly as sent and received.
Passing exchange
Accepted, as requiredConformance client
The conformance client sends a client_credentials token request to /oauth2/token with a DPoP proof that has no nonce claim, receives a use_dpop_nonce error with a DPoP-Nonce header, and retries with a new proof whose nonce claim is that value.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.POST https://protocolsoup.com/oauth2/token400 Bad Request
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oauth2/token HTTP/2.0 Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU= Content-Length: 29 Content-Type: application/x-www-form-urlencoded DPoP: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IkxXOTBHczZ5aEwydDBkSXV0LTVGNnVNcEs2UHhGcHZpUi1fN1NZeDZFck0iLCJ5IjoiMTgtdzBvejFMVl9yY0llR1JMazYwak1zUE5EWno0dDdrYzVfQkxDaHUwcyJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzYyMSwianRpIjoiYjEzYWQ2YjYtNzEyMS00Y2I1LWE0ZDMtNTMyZDg2NDE1MzU1In0.jV0ETsvwDYhR2ygSV1sYQn7KliIrPWiSfdvLD9tmrYeNi22hOTXoSUxjvF8nXtcdYJgqcRxIn-bjybt-5kl4vA Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 grant_type=client_credentials
Response
HTTP/2.0 400 Bad Request Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65ba02f1a453cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:02 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RJPCKX2HDNWX9N0TTAS10-ord Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} Pragma: no-cache Referrer-Policy: strict-origin-when-cross-origin Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=UajQh1V4jOT0pR1TzhpcrVFyCnu1kcsOY2HrUJQ8o5fYGsGWJOgZWPSTEVipaA4cQ4RyQ9dpc6Tx9emQBmZOnTkeirrOS4vixCC5kpHLRqsHyxzMzBjkM3x%2BN9A2uwSd%2FW4%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=4,cfOrigin;dur=229 Vary: Origin Vary: accept-encoding Via: 1.1 fly.io, 1.1 fly.io X-Content-Type-Options: nosniff X-Frame-Options: DENY X-Xss-Protection: 1; mode=block {"error":"use_dpop_nonce","error_description":"A fresh DPoP proof nonce is required; retry with the nonce from the DPoP-Nonce response header","error_uri":"https://datatracker.ietf.org/doc/html/rfc9449#section-8"}2.POST https://protocolsoup.com/oauth2/token200 OK
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oauth2/token HTTP/2.0 Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU= Content-Length: 29 Content-Type: application/x-www-form-urlencoded DPoP: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IkxXOTBHczZ5aEwydDBkSXV0LTVGNnVNcEs2UHhGcHZpUi1fN1NZeDZFck0iLCJ5IjoiMTgtdzBvejFMVl9yY0llR1JMazYwak1zUE5EWno0dDdrYzVfQkxDaHUwcyJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzYyMiwianRpIjoiMmQ0OTI0ZjUtYTgzYy00MjQzLWI3ZjItN2I5NTBiYmUxYzYxIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.Nx2ShIXcQAsWZ3RwV1ve6DmaqYbuyMFOb0n8ionKTvLKISZqxf35dHc3fHIDeiB-MWDmy3jedScFy_FPZIc8FA Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 grant_type=client_credentials
Response
HTTP/2.0 200 OK Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65ba0355ef13cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:03 GMT Fly-Request-Id: 01M95RJQC5651J9DG2D416ZZJ5-ord Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} Pragma: no-cache Referrer-Policy: strict-origin-when-cross-origin Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=4m0QYYBtwKaE%2FUEc7SSvMDBUe4cyxGUzjDS1HNXd2mEX45I6TPvSvcijeOMvuHwm%2F2bGEtK8G40q3yIf9qlxhX0%2BMNtKMRrrWdRQFIFs3xiyg4bRJdopVdL7Y9wxSidje7A%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=239 Vary: Origin Vary: accept-encoding Via: 1.1 fly.io, 1.1 fly.io X-Content-Type-Options: nosniff X-Frame-Options: DENY X-Xss-Protection: 1; mode=block {"access_token":"eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiYXQrand0In0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiaU1EVXR1bDVSU1hvU3N5ZktJa0E3Q1J6elI4SkhrVWxobnJ4RTZaRHdHcyJ9LCJleHAiOjE3OTY1NjcyMjMsImlhdCI6MTc5NjU2MzYyMywiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS02NmEyZTAxZjVmZmUzMDAwIiwibmJmIjoxNzk2NTYzNjIzLCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.sUjMYrIp1J-0a2WYREHEfV3R-slV4Dra_O8BQLP3GCkRqSAqm8saEZHfrcVGDjAoLg3PQt4MZ2b6MyOD4pn4sLTa6XB4l8pmsY2jISVEpUbWxdgXhpX82loO_lAdTJnCF652siW__Wj7KRhHX7v-DfO8HepRUJaqJkcMcpKbD41owaCWIS8N5CkfdhSextteLqKJzlsuGJGGmAYLFSJMs7OZNRv7L9UmvoKnbJWkaFqErupX7jqvg7oldQiCKgcn6Qq_WwTw2y7Y-fMzVJ7n_An6fOcS6jZlzOON4otVOMlvAXJjzasqeVvemGi8_847gKdL8vB1HHAVl-n6PJKpNQ","token_type":"DPoP","expires_in":3600,"scope":"api:read api:write"}
Failing exchange
Rejected, as requiredConformance client
After receiving a DPoP-Nonce from /oauth2/token in a use_dpop_nonce error, the conformance client sends two more client_credentials token requests: one whose proof carries a nonce value the server never issued, and one whose proof has no nonce claim.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.POST https://protocolsoup.com/oauth2/token400 Bad Request
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oauth2/token HTTP/2.0 Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU= Content-Length: 29 Content-Type: application/x-www-form-urlencoded DPoP: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJtSmdOSnFxSGZHQmFwdXRDM2V5aEU0eWVfRDhuRWdib2loLUFOMjE3Z3ciLCJ5IjoiS3locVBKSVp4UGxsRG9WT25Tc0dnTE9tM0N6LXBKWExWNGNCdk9TaHR2VSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzYyNSwianRpIjoiODMxODY3M2MtZjMxZC00NzkwLWI2OGUtMWE3NTcwM2QxMDU0In0.Z3KdiEMbX-GDpr4_R8GbyBgV3g0ydkPBz9j6sOyyEbpfiODibR0-eiewlYSY49hXa4vp03LYMiWTLXolMTB9Og Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 grant_type=client_credentials
Response
HTTP/2.0 400 Bad Request Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65ba0481f3c3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:06 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RJT9Z7GBV4XT46E1ACFTB-ord Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} Pragma: no-cache Referrer-Policy: strict-origin-when-cross-origin Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=s64LKz1DocvYalA4Wl8l7UvpxK2iLR67G8N4MI4Lr3bN2vtsHKTTaFKcC8zxsA2iOB8sfqwM1gudmSQRhnBZ8tUsgwqj7vNm0uQPD03VUafB8QKFeV4xmjniwWaAprJsBrU%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=235 Vary: Origin Vary: accept-encoding Via: 1.1 fly.io, 1.1 fly.io X-Content-Type-Options: nosniff X-Frame-Options: DENY X-Xss-Protection: 1; mode=block {"error":"use_dpop_nonce","error_description":"A fresh DPoP proof nonce is required; retry with the nonce from the DPoP-Nonce response header","error_uri":"https://datatracker.ietf.org/doc/html/rfc9449#section-8"}2.POST https://protocolsoup.com/oauth2/token400 Bad Request
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oauth2/token HTTP/2.0 Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU= Content-Length: 29 Content-Type: application/x-www-form-urlencoded DPoP: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJtSmdOSnFxSGZHQmFwdXRDM2V5aEU0eWVfRDhuRWdib2loLUFOMjE3Z3ciLCJ5IjoiS3locVBKSVp4UGxsRG9WT25Tc0dnTE9tM0N6LXBKWExWNGNCdk9TaHR2VSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzYyNiwianRpIjoiNmFiZDk1NGQtOWMwMi00YzQ3LWIzMWYtMGJhOWRkZWM4MzQyIiwibm9uY2UiOiJhT3lhcUYyUHNWUjJVOTdSc0UwWnQwd3hnS3BQNmpNZSJ9.IJUUKOIJ_MFFpFwdnSgwxF-M3lRq0RDvRA5Z-jiYk_d-9vLUhI1keaKMlGMtDCPBbvUPHr6Gsm0Pf2LJhZsHOQ Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 grant_type=client_credentials
Response
HTTP/2.0 400 Bad Request Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65ba04e5d1e3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:07 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RJV856TR2E2SFJX8N7NFM-ord Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} Pragma: no-cache Referrer-Policy: strict-origin-when-cross-origin Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=I8ab3GHKu6K%2F7zSKcsWN6BFmxbD6i5QOk5ktn%2BWbeS%2Flx%2BgbpBAqJh1u7lQ6zeI500Nsa6ztvdxytK3Qf1arc3NPCmnJpELteuVUqXuH0hPXTIjdYlsGDtktbYE%2BgN88%2BaQ%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=2,cfOrigin;dur=312 Vary: Origin Vary: accept-encoding Via: 1.1 fly.io, 1.1 fly.io X-Content-Type-Options: nosniff X-Frame-Options: DENY X-Xss-Protection: 1; mode=block {"error":"use_dpop_nonce","error_description":"A fresh DPoP proof nonce is required; retry with the nonce from the DPoP-Nonce response header","error_uri":"https://datatracker.ietf.org/doc/html/rfc9449#section-8"}3.POST https://protocolsoup.com/oauth2/token400 Bad Request
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oauth2/token HTTP/2.0 Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU= Content-Length: 29 Content-Type: application/x-www-form-urlencoded DPoP: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJtSmdOSnFxSGZHQmFwdXRDM2V5aEU0eWVfRDhuRWdib2loLUFOMjE3Z3ciLCJ5IjoiS3locVBKSVp4UGxsRG9WT25Tc0dnTE9tM0N6LXBKWExWNGNCdk9TaHR2VSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzYyNywianRpIjoiMjFkNzU4ZTctOTFjYi00NDkwLTk5YmMtNjg4Nzc0OGMyNDQ3In0.KUPg_WGwdT6RK_KBDMdo0xmHMouYd1eRkBIedPgSPCf819K_s6eQSfv7Xbys77fFHEtefrhwF_vsm4T0snWUww Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 grant_type=client_credentials
Response
HTTP/2.0 400 Bad Request Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65ba0549ac43cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:08 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RJW8CSZXXCR6SJ5WB7NS6-ord Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} Pragma: no-cache Referrer-Policy: strict-origin-when-cross-origin Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=QfevY1gkVBZNGeW17rfBb6dDNBGIOcFuRSfhV3jgwyrEGHXNUaFwSqIq%2FX59xY0A5O0rIgLAm0qZeOjrjFER0p1kmRu7aVr1Q9qFCSUgCi1vDYUdbVivlJYyBblx4sjXVy8%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=242 Vary: Origin Vary: accept-encoding Via: 1.1 fly.io, 1.1 fly.io X-Content-Type-Options: nosniff X-Frame-Options: DENY X-Xss-Protection: 1; mode=block {"error":"use_dpop_nonce","error_description":"A fresh DPoP proof nonce is required; retry with the nonce from the DPoP-Nonce response header","error_uri":"https://datatracker.ietf.org/doc/html/rfc9449#section-8"}
Run it live
Looking Glass runs the flow that sends the message this requirement governs, against the same server, and decodes each exchange as it happens.
Open the flow in Looking GlassTests
- TestValidateProofRequiresNonceWhenInForce
./internal/dpop
Pass
Implementation
Explainer
What this requires
This is check 10 of RFC 9449 Section 4.3. When a server has given the client a nonce in a DPoP-Nonce response header, the proof's nonce claim must carry that value. Section 8 says: "If the nonce claim in the DPoP proof does not exactly match a nonce recently supplied by the authorization server to the client, the authorization server MUST reject the request." Section 11.3 closes the gap of leaving the claim out: "A server MUST NOT accept any DPoP proofs without the nonce claim when a DPoP nonce has been provided to the client."
The rejection uses the error code use_dpop_nonce and can carry a fresh DPoP-Nonce for the retry: HTTP 400 at an authorization server (Section 8), HTTP 401 with a DPoP challenge at a resource server (Section 9).
Why it exists
Section 11.2 explains that a client, or the user controlling it, can pre-generate proofs "arbitrarily far into the future" by choosing iat, and copy them to a machine without the key. A nonce the server chose at a time of its choosing cannot be predicted, so a matching nonce shows the proof was signed after the server issued it.
What non-compliance looks like
A server that sends DPoP-Nonce but accepts proofs with no nonce claim, or with any value, gets no protection from the mechanism: a pre-generated proof still works. Section 11.3 calls this a nonce downgrade.
How ProtocolSoup tests it
Nonces are off by default. SHOWCASE_DPOP_NONCE_REQUIRED turns them on for the OAuth 2.0 and OID4VCI token endpoints and the OID4VCI pushed authorization request endpoint, and SHOWCASE_DPOP_RESOURCE_NONCE_REQUIRED turns them on, as a separate nonce space, for the OAuth 2.0 protected resource and the OID4VCI resource endpoints. Each space is shared by all clients of that endpoint role, not issued per client. After the proof passes every other check, the endpoint asks its NonceIssuer whether the nonce claim is the current or immediately preceding value, compared in constant time. An empty or unknown value gets use_dpop_nonce with a new DPoP-Nonce header.
TestValidateProofRequiresNonceWhenInForce signs a proof with a nonce claim and asserts that dpop.ValidateProof accepts it when the RequiredNonce option holds the same value and rejects it when it holds a different one. No endpoint sets RequiredNonce, so this test exercises a code path production does not use. The production path is covered by endpoint tests not listed on this row, such as TestTokenEndpointChallengesMissingNonceWhenRequired and TestTokenEndpointForeignOrStaleNonceIsRejectedAsFreshChallenge, which assert HTTP 400 use_dpop_nonce with a DPoP-Nonce header.
Messages that carry it
Related requirements
Also in §4.3
- DP-001Can a request carry more than one DPoP header?
- DP-002Which claims must a DPoP proof contain?
- DP-003What typ header must a DPoP proof have?
- DP-004Which alg values are acceptable for a DPoP proof?
- DP-005Which key must a DPoP proof's signature verify with?
- DP-006Can the jwk header of a DPoP proof contain a private key?
- DP-007What must a DPoP proof's htm claim match?
- DP-008What must a DPoP proof's htu claim match?
- DP-010How old can a DPoP proof be?
- DP-011What must a DPoP proof's ath claim contain?
- DP-013Which key must sign the DPoP proof presented with a DPoP-bound access token?