Can a request carry more than one DPoP header?
Not more than one DPoP HTTP request header fieldRFC 9449 §4.3MUSTRoles: authorization_server, resource_server
Requirement as recorded in the ProtocolSoup registry
There is not more than one DPoP HTTP request header field.
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 requests a client_credentials token from /oauth2/token with exactly one DPoP header field, answering a use_dpop_nonce challenge if the server issues one.
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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IlVtSHNjLTRBQl9TZ0JDZ0Rfb0tLZTRBV1FFSkdlY2IwMl9YUHJvdnlRSlkiLCJ5IjoiRFRsdVg3c2pFVHA4TjE2eWNsRTNKVW1SZGd4QUtKQ2YxSy03d1dGdE5YOCJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU1OSwianRpIjoiNmZiNzRjZjQtYThkZi00ZjdmLWI1MmEtNzJkNjYyNDg4Mjk4In0.tWklHgRbmwGKr87CYdy6bTBwnFxG7TltLt03uAh-uTTWmsdZq-BMMIqw-J1Na14WZRGYl645LLJUfoxHAoNuKA 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: a65b9eac1fb73cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:00 GMT Dpop-Nonce: -94VVhyyjSkawX-a8RkwN1uiVf7_YCrT Fly-Request-Id: 01M95RGSXGJ4SMP7CNX3DGR6Y8-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=IOCHkj0VXexhorBACTwfYfEXIMUtTQKAkGZi25i1cKmPg1QDEnT0MP6U4AEYTBfHb0kM3MPhfU5FvnJeP7d0pTBLda8Z%2BZATqvGGghC%2BHr0sWUGz38IpxqiNMw%2Boio%2FUMfE%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=23,cfOrigin;dur=197 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IlVtSHNjLTRBQl9TZ0JDZ0Rfb0tLZTRBV1FFSkdlY2IwMl9YUHJvdnlRSlkiLCJ5IjoiRFRsdVg3c2pFVHA4TjE2eWNsRTNKVW1SZGd4QUtKQ2YxSy03d1dGdE5YOCJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU2MCwianRpIjoiNzI1YjA3YmQtYTcwYS00OTRmLWE3NzItZjU4YjI0YjU0YWYzIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.6NfILUrOqJiAGVSJhcPH3ZiCnOafKZsGNr7y1NIJF0rhpDiZGoQypBHLevhm-jFEM6GcIWOT4b2dlVPSa0kv2g 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: a65b9eb1eba43cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:01 GMT Fly-Request-Id: 01M95RGTV117YY347FR6GWCFBB-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=bwFQ3gJj0nHoqrGfisNIZAs2zUt%2FDg%2BumhYII4xo0uiXmOB2svCEmQ8hbNPyVdJ6hDB47f1jPlV4dF38cI9t7%2B7%2F5gwG8XsAlt8piaQ0hz2QWfLQa7BljpBvpGLGAnjFNQg%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=6,cfOrigin;dur=447 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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0Ijoic0FqLV91TFBMWUkwQU1UazRtWmh6RG5hYTZUNl96MXItSWNZbjI1dlN6cyJ9LCJleHAiOjE3OTY1NjcxNjEsImlhdCI6MTc5NjU2MzU2MSwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS1hZjcyOTdkY2EzMWY1MDNlIiwibmJmIjoxNzk2NTYzNTYxLCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.WIEtoQpLrsmZ3v1xmWZCSbH1jOqocSQZgCMhANspIkrSRNGtal7LJCotNcpb_bwRlCklBKTXZ3HEeLZCXysZmOBd_u6dLmxnTptlJ-w6TJ3yeNOvDpAV6qQ-bqBCONImV5iFIeo5sfboAYSIv2QMQY4FrO2oCnVMEsHsTbLwCmGXrFicgDffCMaTra9TKs-nbcLb3gRZwdwMxa2rSJkLVo9GeCeVOYil7fWEX58W1aOANq_a5XxufPdY0u_TBRla3c3W3Cd6jSu2f6__A7FxrT9jEJ6iLlynq7ntpcK9vr2vOCy5uNb_ObP4ixKMEq9cV4ISv-YuCj7i1866P7VVCg","token_type":"DPoP","expires_in":3600,"scope":"api:read api:write"}
Failing exchange
Rejected, as requiredConformance client
The conformance client sends the same token request with two DPoP header fields, each carrying a valid proof.
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 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3HHHlW4OtfhZ0XkputTdDPzgTmA 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: a65b9ec498be3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:04 GMT Fly-Request-Id: 01M95RGXQW1VHBGFAPNRRS8Y93-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=nkAZZIwwMGSfwPNxlbDzyV20VpXhCG31Xlz3gtQpaT9pxhsAM4Tf29U1Lp2T5u8EtMdjYVxdSwQuY9skas4VDt6OkIawgrbDu3lqvMyXlHhLUDQrEQXTOE9bhaKBNK4XRTE%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=18,cfOrigin;dur=204 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":"invalid_dpop_proof","error_description":"DPoP proof validation failed","error_uri":"https://datatracker.ietf.org/doc/html/rfc9449#section-5"}
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
- TestExtractHeaderRejectsMultipleHeaderFields
./internal/dpop
Pass
Implementation
Explainer
What this requires
This is the first of the twelve checks RFC 9449 Section 4.3 lists after "To validate a DPoP proof, the receiving server MUST ensure the following". A request may carry zero or one DPoP header field. If it carries two or more, the server treats the proof as invalid and does not pick one of them to validate.
The check runs before anything else about the proof is looked at: the number of header fields decides the outcome, whatever their values.
Why it exists
HTTP libraries disagree about duplicate header fields. Some hand the application the first value, some the last, and some join them with commas. When a proxy and the server behind it read different copies, the proof one of them checks is not the proof the other one acts on. Refusing the request whenever more than one field is present takes that ambiguity off the table, because there is no longer a choice to make.
What non-compliance looks like
A server that reads the header with a "get first value" helper, such as Go's http.Header.Get, accepts a request with two DPoP fields and validates only the first. A second, unchecked proof then travels with the request, and any component that reads the last value sees a proof that was never verified.
At the token endpoint the correct response is an error per RFC 6749 Section 5.2 with invalid_dpop_proof as the value of the error parameter (RFC 9449 Section 5).
How ProtocolSoup tests it
Every DPoP-protected endpoint reads the header through dpop.ExtractHeader, which takes all values of the field rather than the first. This covers the OAuth 2.0 token endpoint, the OAuth 2.0 protected resource, and the OID4VCI token and Credential endpoints. One value is returned trimmed; two or more are an error before any JWT parsing happens.
TestExtractHeaderRejectsMultipleHeaderFields passes two header values to ExtractHeader and asserts that it returns an error instead of either proof.
Related requirements
Also in §4.3
- 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-009When must a DPoP proof's nonce claim match a server-provided nonce?
- 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?