What typ header must a DPoP proof have?
typ JOSE header parameter has the value dpop+jwtRFC 9449 §4.3MUSTRoles: authorization_server, resource_server
Requirement as recorded in the ProtocolSoup registry
The typ JOSE Header Parameter has the value dpop+jwt.
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 whose JOSE header typ is dpop+jwt. 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6ImdseEtCVm9SOHYwYTdNN2VHdllTaUtzNERRYnNQM3VRM1VUeUxyUHBkSFkiLCJ5IjoiYmRSQzY0TWxiTXhhc1BUc3VxZ1hNZGNtcmQtX2w1N2kyMUNUWmdXcGRYbyJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU3NiwianRpIjoiNmU5Y2Q4MTYtNDEzMi00N2RlLTg2ODktZTg5OTRlNTk4ZGYzIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.GOzfBCKlRW6ppDZUSZDUE4hIj_JjNNxcNra9zLHSbO15KjVF2nxR54OXl3FqIfLUJSa4Ya4odt4jGCHYvUPfmw 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: a65b9f15d9d13cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:17 GMT Fly-Request-Id: 01M95RHADN8PKT7FBE0T8R9CEZ-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=6nQawsCk1istHp79qRLQE0SJbJ9y7RbmNbC1TRJAMTD%2Bmw3TqJsDdOokJGLS03d7KLT2H7pztAqYGA7oyPjg1r7BwJhyO6S7HcEV9RlHhsHPLB7OhzOzQMce0AvVwLFFlRw%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=200 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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiNmdJTk1IUGJ2azFiVVRIWUJuWUYyY0ZnemY4TDVFVmRaWllPLTlXbmZwZyJ9LCJleHAiOjE3OTY1NjcxNzcsImlhdCI6MTc5NjU2MzU3NywiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS1iYWVjOGVjMWI5ZWExMGNiIiwibmJmIjoxNzk2NTYzNTc3LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.ecYXXwYPBzZlP7TEMVkH94-oo38imJFycydxeQxlTnflyrpGHGWcyhFjHi5okkOlQ-CLF-953xcvCXgscyTLBrASWQh_Nowgq4FxvNBjA16MFkvZIFQw3kh2a0v62sYJvQxxUnuDFgQybghciE9_AU0mwN7AGsA0ehGwFfwcr2loNQ_lTYdentcIoJ6Ul8I3RBKvTVwhXTkcMwk2I7twye6OwOIMT-bTi1bdp8X5OBEGVpUZE8bFVKbCd_LVSFEDcXVJuYDmOhSS1ytFQLCEzsePKEVWb4v3aZ7dvo9zDohhrOKnZImYNO2Kq6G40P79axo122XJNR58lKeHFGyQrg","token_type":"DPoP","expires_in":3600,"scope":"api:read api:write"}
Failing exchange
Rejected, as requiredConformance client
The conformance client sends two client_credentials token requests to /oauth2/token with otherwise valid DPoP proofs, the first with the JOSE header typ set to JWT and the second with no typ header parameter.
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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IjJOakVFRG9qMVlJMjhaRlRTUk1GcVRvQWM1Y0lQV2tJaFE0eWZNV1RCTVkiLCJ5IjoiMW5CVDdOaUVBaFhNeHU0eGZPeTQzbFlOelpFcy1ERnlmemdnajRpeTAwSSJ9LCJ0eXAiOiJKV1QifQ.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU4MCwianRpIjoiNDRhNjc3MWMtYjlkMi00OGFiLTg3MDktYTQxNmFlZmM5Mzc5Iiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.fyuPefLRrumkyRkR7rDf8sOl2dd46KqHn4TRGviHNVWlPbfkfC11oVf40Q11rqxJutj-ocL0kjhntMuBYlszyA 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: a65b9f2edcad3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:21 GMT Fly-Request-Id: 01M95RHEANTB12P5F5JQ6CZENA-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=lhh5WftEnz%2Fqgq9tsLmpnds4dLl4k6OOgipAzm8MFxu6adhPnfivBwhpj4npaatN6g%2B7roNr2ZkcS8BZkXTphhA9WuV1sHlT9CqJuFLDgNHTZLLj7PQdbfridUNIvxCjL7k%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=196 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"}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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IjJOakVFRG9qMVlJMjhaRlRTUk1GcVRvQWM1Y0lQV2tJaFE0eWZNV1RCTVkiLCJ5IjoiMW5CVDdOaUVBaFhNeHU0eGZPeTQzbFlOelpFcy1ERnlmemdnajRpeTAwSSJ9fQ.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU4MSwianRpIjoiNDFlN2FhYmYtNGJmNy00NDc0LWE3ODAtYTg3NTA1NGUxNzQxIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.rHnNTg2MkB4VtsysBVMxDH2ZoT9K-z-C4XFWpibpYGmx9Fw3zBcIK4ChGFRVBJCc4qM2jEdUSpf4yg1J5CXBWg 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: a65b9f3529253cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:22 GMT Fly-Request-Id: 01M95RHFB77XP2FQR45GQZ6221-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=97kJAxYu9cxiL1hpRF7mJSensfptE7u%2FfWsIY2zAbEiBzGJqtRYXIGWB1uSjk7ugH83BogrsWUOCvXeTUDLQzopQur19VoO3IgbXlyKDvcSFvowhemoKcjzbLxhuIygToZ8%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=238 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
- TestValidateProofRejectsWrongTyp
./internal/dpop
Pass
Implementation
Explainer
What this requires
This is check 4 of RFC 9449 Section 4.3. The JOSE header of the proof carries typ with the value dpop+jwt. A proof with no typ, or with a generic value such as JWT, is not a DPoP proof and is rejected.
Section 4.2 describes the parameter as "A field with the value dpop+jwt, which explicitly types the DPoP proof JWT as recommended in Section 3.11 of [RFC8725]".
Why it exists
RFC 9449 states the reason in Section 11.5: "Servers accepting signed DPoP proof JWTs MUST verify that the typ field is dpop+jwt in the headers of the JWTs to ensure that adversaries cannot use JWTs created for other purposes." Without explicit typing, any JWT a client signs with the same key, such as a client assertion or a credential key proof, could be presented as a DPoP proof if its claims happen to line up.
What non-compliance looks like
A server that never reads typ accepts a signed JWT built for another protocol step as long as the signature verifies with the embedded jwk and the claims it does check are present. The proof then demonstrates nothing about the request it travels with.
At a token endpoint the correct response is HTTP 400 with invalid_dpop_proof (RFC 9449 Section 5).
How ProtocolSoup tests it
dpop.ValidateProof decodes the header and compares typ with the constant dpop+jwt as an exact string before it looks at alg, jwk or the signature. Any other value, including a missing typ, fails validation.
TestValidateProofRejectsWrongTyp signs an otherwise valid ES256 proof with typ set to JWT and asserts that validation returns an error.
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-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?