Which DPoP nonce values must an authorization server reject?
Nonce claim not exactly matching a recently supplied nonce is rejectedRFC 9449 §8MUSTRoles: authorization_server
Requirement as recorded in the ProtocolSoup registry
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.
Read §8 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 receives a DPoP-Nonce from /oauth2/token in a use_dpop_nonce error, then sends two client_credentials token requests whose proofs carry exactly that nonce, seconds after the server supplied it.
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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InFuczdiYVhwYnBxcVNmVVVONl9mQS03Wl9xYjcxVlNYVVA2cDZGbmM3WlkiLCJ5IjoiRUpkRVp3bndzNm14LUlDaWFaM2VqVk9meEtJeEhyZE1Kd0NhTXlJclFHcyJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzY1MywianRpIjoiMTJlYWQ3ZmItNzEyYi00NTQ4LWE3NzItMjc4ZWNkZmMzZjkzIn0.eocD60Vi3JRcUqSAKDRDl0iWdaE9bhStGikdIlTe_1D8jLokMUb5D6LApONlL-rLESvUwsNfzNhwDD5s9T1E4A 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: a65ba0f729b83cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:34 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RKNKYMYYE6761F9243M5E-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=3Cocy2xa3WxvdgzdrWsNAcKt3hVLQydYZCTXyJb51HSqydON39FeyNm%2Fcu8J%2FpwtTca%2B5Aq0NiNPGfD6kYD1KkCJVumWNzKvIYdvoXvADPEsl4RXB%2FgYwfiOAJ9PbM9fRuU%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=211 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InFuczdiYVhwYnBxcVNmVVVONl9mQS03Wl9xYjcxVlNYVVA2cDZGbmM3WlkiLCJ5IjoiRUpkRVp3bndzNm14LUlDaWFaM2VqVk9meEtJeEhyZE1Kd0NhTXlJclFHcyJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzY1NCwianRpIjoiYjE0YmJkYmQtNmRmZC00OTMwLThhOWEtODUzNzE3OGRiZDQyIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.yNBifJP1QcPTXwGQDud-CMnEhMWwNKHrYTY4uxpUjjA7Tx-H36izDXzWmkn0qq09K1AKPUWzVvI5dpKX5oJIBg 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: a65ba0fd587e3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:35 GMT Fly-Request-Id: 01M95RKPK6Z5NPQGHTK6PGQSG7-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=Ju69dWwOC8JNKuqa1bvkLUFx7rhPx1ZdylyNvCr3kbNMFTI6f94%2FIdqYOui%2Fb0IowcIc%2BegX4ks87hlfogjccyCZyENgl%2F95X%2F4iJZ4rj4jeewoowx9mTVuHcA0BteFIJec%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=4,cfOrigin;dur=205 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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiYUhPd1I5WllMeVlqX3FGdHhoSFdLMXhEb051Yi1mekRJX0tCMUtxbUxWZyJ9LCJleHAiOjE3OTY1NjcyNTUsImlhdCI6MTc5NjU2MzY1NSwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS1mYWVjZmMwYjEzOTgxNzgwIiwibmJmIjoxNzk2NTYzNjU1LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.iawo-jjefr1rrvSbg8TkTgnXg5C4Icl7PddsuEbhJn5Hqmhyo2OAWMrvlN5XTaX4esLRrCHdfKJ30KSMelS333yUJ2R87068xNvBtDpRBFOGwsgcJCDQlnzjD9mUcdOZEJ3bKjZhGar0372NIfi9BdsxkiAhup7hegWQTrZXNuSaqxL1bi-WByrv3bOIyKzL3XkEXsTU_-UT3BtFLJdih4m5O48f2C0_ecyySMoTIu4KlBI8tbwIHT15wn-H6HZLBczMNP0RktHrfHipElzaC8JMyPJ3Ry4hyKQAT30UFEhGTGcuZdKn1ZIU9QMPi4RMFNb00yNHhNm-ukgEi5LZXQ","token_type":"DPoP","expires_in":3600,"scope":"api:read api:write"}3.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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InFuczdiYVhwYnBxcVNmVVVONl9mQS03Wl9xYjcxVlNYVVA2cDZGbmM3WlkiLCJ5IjoiRUpkRVp3bndzNm14LUlDaWFaM2VqVk9meEtJeEhyZE1Kd0NhTXlJclFHcyJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzY1NiwianRpIjoiYTQ1NTM5ODUtMWFiOS00NDIyLTkzMDAtMDY3Y2Q4ZGRiNWJmIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.Hcz-yaPDtOGSaDIO7a9wjUK38JvliDbkXr2NawdCXagbSfe7NIq9hcJ1tM6PIqQudDNaaYbO3VQ42RJmq89_uw 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: a65ba109d9063cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:37 GMT Fly-Request-Id: 01M95RKRHN22025J1H1PHDWANH-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=6jcSSNDaf6oVe1RJ5PfFE78SInL4CoAnQqsUgxYwHHmr%2BDShXcC5MO88KoOgmTsvzDsXM6vnC22KGOGhVowb7I4GYoKj3LtmRDsm6edzTeIudBY5YULp8xh%2BLDy65Co5hds%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=2,cfOrigin;dur=205 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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiYUhPd1I5WllMeVlqX3FGdHhoSFdLMXhEb051Yi1mekRJX0tCMUtxbUxWZyJ9LCJleHAiOjE3OTY1NjcyNTcsImlhdCI6MTc5NjU2MzY1NywiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS0yNjA0YTY1OTRiYzAxYTJhIiwibmJmIjoxNzk2NTYzNjU3LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.YMVHNMbp2EM7FG8cLyM5bo1QbwgEzcYTjFpOg-LUrUhPBmkjUuPh_TDWx5KjyVN2LjEc8PYzYcgxEXdQtFzlTFtubJ41tIJhi7Zay3svPbILrSZ78DVrOvkMwspVJULOGN1je7AZ5adD3Ev0XxAZ0q8cH9DnIQxuPMW_IzNY2t8PhOvcfCPhhUhyqJZPKikpkHVW40WMth9eucm2kLW0WYKPyF1rbu4MVH3PMQ9MgtYXqiAyEGWfWmsefC0ZagrlMPQQgdhshmVkeDSL27-h0A-X4x3ZmIx-IucjgSsl5hhinAGzrc4Wv2FJkAUA4RVU94iyjyXT1USef3fCa_4JaA","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 with otherwise valid proofs: one whose nonce claim is the supplied value with its last character replaced, and one whose nonce claim is the supplied value with its last character removed.
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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IklVbEFhZUkzaG5zN245SmgzZ21abjdhOHJMazdvaDg0QzlPUGl4ZVVPZ2siLCJ5IjoiRWg1Nkd2cnNJRWZuV2R6NGYwcjdqeDRoMDJ3cFpfaXRnTGxvQTFxdE9kVSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzY1OSwianRpIjoiNjA1NmVmY2QtZDk1OS00MjI3LWIzODMtNTVlOTVhM2QzNzc5In0.v2EY_1tzwGkr-MTN4ddY9VLfHrOUQKaP2GIp5pS82hIAxhcu90s8awSLDEvCw--YuM-Q2Rg7hUFtwQth-uQr3g 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: a65ba11c988e3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:40 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RKVFECZ68JWPQB4YD2QHJ-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=8AlT3rXlL3CmMxXBot6BRmNRIk8EFQXuQcu4u4LQxcdQLxctQKljieR715b7LBHFigut2pGYv1ayrTJd8WwxXMY4POr8QOonKZGPDpLCqDz%2F6pq9Nt4in1WHpvDZmrD93cY%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=205 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IklVbEFhZUkzaG5zN245SmgzZ21abjdhOHJMazdvaDg0QzlPUGl4ZVVPZ2siLCJ5IjoiRWg1Nkd2cnNJRWZuV2R6NGYwcjdqeDRoMDJ3cFpfaXRnTGxvQTFxdE9kVSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzY2MCwianRpIjoiNWM0N2FlZjAtMDEyZC00N2Q4LTljYjEtOWM3YjQxM2NjOTYyIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyQSJ9.HamZbUhf-7t9TmocvakJa6JCEi-Q6PWvE7jDCkjMKvR04y-GyJGNZR18Z9HFWC3jB9V0iQF_HGTPCHmJma_Ojw 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: a65ba122dcba3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:41 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RKWF906Y4KPNM3G0C45P6-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=7SXrNCHvn2bgYKBa%2FKfrmXZbsQ1RofIQEyCA6m9iwGL79y%2BF8Y1CDjjlCcoZWGzZX32MnUCp0ZZBWaRxMByl3uC6xrxmVImzqWh1XVqh43qcSH6FV2odBX3pzazeeIliV5Y%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=21,cfOrigin;dur=203 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IklVbEFhZUkzaG5zN245SmgzZ21abjdhOHJMazdvaDg0QzlPUGl4ZVVPZ2siLCJ5IjoiRWg1Nkd2cnNJRWZuV2R6NGYwcjdqeDRoMDJ3cFpfaXRnTGxvQTFxdE9kVSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzY2MSwianRpIjoiMWUwYzI0MjktOGQ2YS00OTUyLWIyNDAtYTUzZDA1NjVhZGI2Iiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyIn0.EuxcFAYbFxRx_68-89BSI5ZaGo9G_t9WQ9EOIYqW05clAkk0z96gJ9kQe5nolxUmxLGv-jfSHq1_sIUo4SmZLQ 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: a65ba12919563cdb-MSP Content-Security-Policy-Report-Only: script-src 'unsafe-inline' 'unsafe-eval'; connect-src 'none'; report-uri https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report?m=H3xV2xxO_2ulNsXB.crVFTHW8aRnZEIHeIVGx2nNyTE-1796563662.2616117-1.0.1.1-Hj58f4j.0mSEkVJvNniK4B9LghpadSbhBufPaBqfUj8BYXYd2Jgw0.vVTl8EzFlnEq44bn3_GArHXhVf6CnpsAJkBFHtn3GjUavRLdDEgjHHliA9shmMiRWeJudjgPXyiXL3TEuCPHfgEEe1IEs.kA6SEflRDQGa8uHHWzQ8kI4fu8DVk3BGQeXUAJGJ4jGW; report-to cf-csp-endpoint Content-Type: application/json Date: Sun, 06 Dec 2026 13:27:42 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RKXDY43HANZHKG0BFMZ1J-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=d6nOTImPxTS5%2BcoHYR%2FtABCALLgjQSF1N58tdYtYdNKlGwYR%2Ff8%2B%2F2Y0jq4eeLPbilT17btWTybNGzhLohpLkEcNpxiVTvGOEBeOPUcIylH4h1yVEH%2F3xBzsd7DGDUyDQEI%3D"}]} Report-To: {"group":"cf-csp-endpoint","max_age":86400,"endpoints":[{"url":"https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report?m=H3xV2xxO_2ulNsXB.crVFTHW8aRnZEIHeIVGx2nNyTE-1796563662.2616117-1.0.1.1-Hj58f4j.0mSEkVJvNniK4B9LghpadSbhBufPaBqfUj8BYXYd2Jgw0.vVTl8EzFlnEq44bn3_GArHXhVf6CnpsAJkBFHtn3GjUavRLdDEgjHHliA9shmMiRWeJudjgPXyiXL3TEuCPHfgEEe1IEs.kA6SEflRDQGa8uHHWzQ8kI4fu8DVk3BGQeXUAJGJ4jGW"}]} Reporting-Endpoints: cf-csp-endpoint="https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report?m=H3xV2xxO_2ulNsXB.crVFTHW8aRnZEIHeIVGx2nNyTE-1796563662.2616117-1.0.1.1-Hj58f4j.0mSEkVJvNniK4B9LghpadSbhBufPaBqfUj8BYXYd2Jgw0.vVTl8EzFlnEq44bn3_GArHXhVf6CnpsAJkBFHtn3GjUavRLdDEgjHHliA9shmMiRWeJudjgPXyiXL3TEuCPHfgEEe1IEs.kA6SEflRDQGa8uHHWzQ8kI4fu8DVk3BGQeXUAJGJ4jGW" Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=2,cfOrigin;dur=211 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
- TestNonceIssuerRejectsOldNonceAfterLongIdlePeriod
./internal/dpop
Pass - TestNonceIssuerRejectsUnknownNonce
./internal/dpop
Pass - TestTokenEndpointForeignOrStaleNonceIsRejectedAsFreshChallenge
./internal/protocols/oauth2
Pass
Implementation
Explainer
What this requires
RFC 9449 Section 8 lets an authorization server supply a nonce in a DPoP-Nonce response header, and this sentence binds the server for every proof that follows. Two words in it do the work. The match has to be "exactly" a supplied value, so nothing looser than equality will do. And the value has to have been supplied "recently", so a nonce does not stay acceptable for ever: once the server has moved on from it, a proof that carries it is refused like any other mismatch.
The RFC sets no lifetime. Section 8 gives the intent, "clients need to keep only one nonce value and servers need to keep a window of recent nonces", and Section 8.2 leaves the timing to the server: "It is up to the authorization server when to supply a new nonce value for the client to use."
The refusal can carry the way to recover. Section 8 says "The rejection response MAY include a DPoP-Nonce HTTP header providing a new nonce value to use for subsequent requests", and that the use_dpop_nonce error code "is used when supplying a new nonce value when there was a nonce mismatch". Section 9 has resource servers provide nonces "in the same way that authorization servers do as described in Sections 8 and 8.2".
Why it exists
Section 8 states what the mechanism is for: it "can be used to limit the lifetime of DPoP proofs", because without it "a malicious party controlling the client (potentially including the end-user) can create DPoP proofs for use arbitrarily far in the future." A nonce limits a proof's lifetime only if the nonce itself stops being accepted. Section 11.2 says so directly: "By providing new nonce values at times of its choosing, the server can limit the lifetime of DPoP proofs, preventing pre-generated DPoP proofs from being used."
What non-compliance looks like
A server that accepts every nonce it has ever supplied, or that supplies one at start-up and never replaces it, lets a proof signed over an old nonce work indefinitely, which gives pre-generated proofs the unlimited life Section 11.2 describes. A server that compares loosely, by prefix or without regard to case, accepts values it never supplied.
How ProtocolSoup tests it
Where nonces are required, each nonce space is a NonceIssuer with a five-minute lifetime that keeps at most two values, the current one and the one before it. Rotation happens on the next Issue or Valid call after the lifetime has passed. The old value is kept as the previous one only if less than two lifetimes have passed since it became current; otherwise it is dropped. A value is therefore accepted for at least five minutes after the server hands it out and for less than fifteen minutes in all, and never once it has left both slots. Valid compares the proof's nonce claim with the two values in constant time. Any other value, or none, gets use_dpop_nonce with a new DPoP-Nonce header: HTTP 400 at the OAuth 2.0 and OID4VCI token endpoints, and HTTP 401 with a WWW-Authenticate: DPoP challenge at the resource endpoints, which keep a nonce space of their own.
TestNonceIssuerRejectsOldNonceAfterLongIdlePeriod issues a nonce with a 10 ms lifetime, waits 25 ms, and asserts that the old value is no longer valid. TestNonceIssuerRejectsUnknownNonce asserts that a value the issuer never issued, and an empty one, are not valid. TestTokenEndpointForeignOrStaleNonceIsRejectedAsFreshChallenge sends the OAuth 2.0 token endpoint a proof whose nonce the endpoint never supplied and asserts HTTP 400 use_dpop_nonce with a DPoP-Nonce header.
The captured failing exchange sends the supplied nonce with its last character replaced and then with its last character removed. A nonce the server has dropped is not captured, because the server keeps a supplied nonce for at least five minutes, longer than a capture run waits; the first test above covers that case with a shortened lifetime.