Which key must a DPoP proof's signature verify with?
JWT signature verifies with the jwk JOSE header public keyRFC 9449 §4.3MUSTRoles: authorization_server, resource_server
Requirement as recorded in the ProtocolSoup registry
The JWT signature verifies with the public key contained in the jwk JOSE Header Parameter.
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 a DPoP proof signed by the private key that matches the public key in its jwk header. The proof carries the nonce the token endpoint issued in an earlier use_dpop_nonce challenge.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InZCYnpiQnhWLVI3ZnRQOU9Icm85NDBKdEZjbFdqQ3dyYWk0SThuYkxLOG8iLCJ5IjoiOVJET08wV2dXazdUMkVzbTl3cUpsc1g4ekJoUmtLTm14Ui1GRGhjbDJTbyJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU5MywianRpIjoiMzFlZGEwNDItNTQ1NC00ZTJjLTkxMzktYjgyNDI1NTJjNTE2Iiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.1FnWWQ9NVckvGrXgalX71v70rUZ6bUKMioZSgMKzLLFci72hja03vVpQKGVcsKiq9ULyIYTQCcAXZ7sjg9UBlQ 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: a65b9f801a6d3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:34 GMT Fly-Request-Id: 01M95RHV1M7WM76KAKGW0NYYEP-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=BbdHl0%2Fjy9S769iI%2B4wLBjxqznNjHKZwUcKdcoiU7kGBSJzOoa1EPrd6ivWPxzjUClsh0bjo3u9QiTNnamBK5JfaKuqTL%2BS3QunpfrbXxbIbXhqCif8xUpmz6E3h92lSWIw%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=224 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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoidGFRaWlNRGNnU0lIY1EtYjJUSzRGTUluVFBJQ0NxYWV3TmdoX0V0TDZZYyJ9LCJleHAiOjE3OTY1NjcxOTQsImlhdCI6MTc5NjU2MzU5NCwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS0wNWRlNTFlNGE1NmMyZjU5IiwibmJmIjoxNzk2NTYzNTk0LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.sCTt1Hb4olJ0vwK6aihyhxhkR5cS6OGzlaJo3zHTTy2YbV9lReOQc4iq6gwAX7hoIvwZPu1Toc7dcd2cW7UvcxigKEPfy0jgQpBxYoYFVS67HbZuJEHPAV90sSblDpJ8991KvcyN5jdgkSmbDR-dOipwgtmJGGVVic2U0k3PMce5BCB_ndxurEzTfmQDcWHpKOuirR4aJoQgNeL3MgPjQgXjkBy98RI6zrZpCopa9nVyZsaskZxkcfVvVGFk5WXLX5yeFOf173la5jWKVs8yD9k5L_Kalv9UU65PKd1VgCabpw6VdT-713_R3YGF8BCBEfwOHgitXLb6uWAwCE2APg","token_type":"DPoP","expires_in":3600,"scope":"api:read api:write"}
Failing exchange
Rejected, as requiredConformance client
The conformance client sends a client_credentials token request to /oauth2/token with a DPoP proof whose jwk header carries one P-256 public key but whose signature was made with a different P-256 private key.
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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6Ilh0NXNDV3VhSGRBWVVQSFBDMmNQZmNjZk95N0ZNRW5KR0FNMzVOSTRuMkkiLCJ5IjoiUDh2SkpuRFJ5S0N4UDY2b2hURlNuUVZ4ZllVSFVJb05XQlQ5R0tNb1JMdyJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU5NywianRpIjoiYzIwMDliNWEtMDc1NS00OWNlLTliM2QtNjBhZjIwZWNlNDAxIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.zS0JvJz4ANwR7Nlu31NKtC0XHiw0q6-haB45Pf78BBP850wNvP3BnPB4HXobGckUTKrRodQhcCyASDXl3wI-SA 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: a65b9f9929e43cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:38 GMT Fly-Request-Id: 01M95RHYYDC7BWA27YJQ5R21WX-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=y9QldFkWBmLbZs1IFXU%2FSk%2FwbU2zoiLLze7HiNuQv5pCDmw%2BYWNe7Tsi8Q1cBjmaulgFa7Ej6Hn7mogTWXxpnGahRP%2FuB3DobOURe5bG%2FI6wBpPpyIVdhZ3Pyt4kJm%2F%2FP7o%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=17,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":"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
- TestValidateProofSucceedsForES256AndEdDSA
./internal/dpop
Pass
Implementation
Explainer
What this requires
This is check 6 of RFC 9449 Section 4.3. The verification key is the public key carried in the proof's own jwk header, which Section 4.2 describes as "the public key chosen by the client". The server verifies the JWS signature over the header and payload with that key and rejects the proof if it does not verify.
The key is not looked up anywhere else: not by kid, not from a JWKS, and not from client registration.
Why it exists
The signature is the "proof" in proof of possession. It shows that whoever sent the request holds the private key matching jwk, and that key's thumbprint is what an access token is bound to through cnf.jkt (Section 6). If the signature is not verified, a proof can be copied or edited freely and the binding means nothing.
What non-compliance looks like
A server that decodes the JWT and reads its claims without verifying the signature accepts a proof with an edited htu or iat, or a proof whose jwk was swapped for someone else's public key. A server that verifies against some other key, such as a registered client key, checks possession of the wrong key.
At a token endpoint the correct response is HTTP 400 with invalid_dpop_proof (RFC 9449 Section 5).
How ProtocolSoup tests it
dpop.ValidateProof parses the jwk header, rejects private material, validates the key and its fit with alg, converts it to a public key, and passes only that key to the JWT library's signature check. The proof's thumbprint is computed from the same key, so the value bound into cnf.jkt is the key the signature was checked with.
TestValidateProofSucceedsForES256AndEdDSA signs a valid proof with an ES256 key and with an Ed25519 key, and asserts that each validates and returns the expected jti and thumbprint. This is positive evidence only: it shows that a correctly signed proof is accepted, but no registry test presents a proof whose signature fails, such as one with an edited payload or one signed by a different key of the same type.
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-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?