What must a DPoP proof's htm claim match?
htm claim matches the HTTP method of the current requestRFC 9449 §4.3MUSTRoles: authorization_server, resource_server
Requirement as recorded in the ProtocolSoup registry
The htm claim matches the HTTP method of the current request.
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 POSTs a client_credentials token request to /oauth2/token with a DPoP proof whose htm is POST. 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IlVURzFUaGMwdXhkZjBZa0lTUDF4ZDZfUVItQlhGc0VyVDNpdWhmb29EVDgiLCJ5IjoiaXY0bjhCMmJsZHdfSktNOEtWc2h4RXVIN0RyOUp4b2lsUjZuZnNZUk9DOCJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzYwNywianRpIjoiOWQ1NDNhNDEtMmRjYS00NmQ0LTg2YmQtM2JjMDY1MzcxM2Q4Iiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.d65UsO30WHRhRgPBjeE4qJ3PL-ZsEDK71whmb-H5NL0OZhQgGY1_h6eB-7BqkohW-MauevaeKV2wIl7fHllMfg 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: a65b9fd798c33cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:48 GMT Fly-Request-Id: 01M95RJ8PZ1G88N20JXS22581N-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=CiwrSVDon4Lkhlb6gxETVWuswXosE%2FarcJ6HpdtuHjtXRN2Z4CYwiUj87cPpC%2BwQmLMjJcdwN8%2BSCNsGa6SrbsYIUq8TUGruSA3nwLsTJM69uQ7tcb9Ay4aAQQeE3P7Mtfw%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=22,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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiLUJvWFgwZnN1TlNFejlSS1QwWFlRZUtVMm0wSWp3UjgxbWd2NGFNWHNLZyJ9LCJleHAiOjE3OTY1NjcyMDgsImlhdCI6MTc5NjU2MzYwOCwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS1iOTc3Njk2ZDIzMGU2ZDBiIiwibmJmIjoxNzk2NTYzNjA4LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.cCs71FnE081zn11C2SsXw4Z3jDsqvfzWI83FIItnr6I8tTygbRFNLobTr-t_XXfXyEMw7n6ODHMJ9xyCeSXtX-yLvLy6tiVzZf1HG0eqPs1Ug8yt1uywBQuORlrAaMoWJTeZZlxc-4S8IYbXXj4vIz8mgjSpWR0GvrNdeS9RFxfvDdONbuBI4xtdK6yw03ov788EnhzVxGAGlucJoGj7Dy_OVMYT9xiMnMWaZIUKtWNVXgE6es0R9pVRvxKmm3nU2iYP1TnK4s1ua1SvRIVKYAqiim51BDG7PnZxlVTfkAVVT7xpNH8Nsw-fx7d96jfJbkW8kjR_fR6l3Ypk2S9WbA","token_type":"DPoP","expires_in":3600,"scope":"api:read api:write"}
Failing exchange
Rejected, as requiredConformance client
The conformance client POSTs two client_credentials token requests to /oauth2/token with otherwise valid DPoP proofs, the first with htm GET and the second with htm post in lower case.
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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6Ikg1dGlEcDJlYUJvVW5oNldyejVDWFAtV0swYUpnRkQtRVVESmhXUUZrX0EiLCJ5IjoiRzZQblJBUWFDQVdQbTZJNkRvcEJfR0p1QXlEVHFQYXROSEtaWEg2VmIyayJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJHRVQiLCJodHUiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Rva2VuIiwiaWF0IjoxNzk2NTYzNjExLCJqdGkiOiIwNjQxMGM3NS00NjQ0LTRjYzUtODgzMy1iN2U4YmJhMGJkZDAiLCJub25jZSI6Ii05NFZWaHl5alNrYXdYLWE4Umt3TjF1aVZmN19ZQ3JUIn0.-LY3Z5JqeoNvMFXE6K9WB0p9Gy3ERVGfEnWsYkJaXUMZ5v2okARD7-V2yH1Hbr5s808cKvBN7JarTpKp7GdpMA 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: a65b9ff09b4b3cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:52 GMT Fly-Request-Id: 01M95RJCMEAJKDEVD52KJ00BCY-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=CK8WpqBV4a7O0W%2FGpeSvgoRxivoJmzwVhSiW9g9K47QEnHgyt7dzqA3Y4OqHtgMM97ct2MYFE%2Bg1oiaxa4w%2Flawkj88CvLcfxCivGq9nS41VGsSwTWHA%2FWURFMJz0wm2D90%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=234 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6Ikg1dGlEcDJlYUJvVW5oNldyejVDWFAtV0swYUpnRkQtRVVESmhXUUZrX0EiLCJ5IjoiRzZQblJBUWFDQVdQbTZJNkRvcEJfR0p1QXlEVHFQYXROSEtaWEg2VmIyayJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJwb3N0IiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzYxMiwianRpIjoiYWYyMGFlNGUtNmM3NC00MDkyLTliZjQtZTlkYjQwMWYyMjM5Iiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.kdss4oG3T4_iWljSb9VxW00bYEbdwevGhPrsAVoH5N5YlsWTVxHtFSURK4S_Oyq4Mxxx9dM8Q6Pn9_7xDifn5w 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: a65b9ff6d8c33cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:26:53 GMT Fly-Request-Id: 01M95RJDMC2AANEQJ66MQKYNXS-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=GW6xGWHAc2Hkz5VoMKlrRcddRWsMBTZd2ykFB55Lk1EltDb5YK7DtvFTz%2BRARt8FilSZjtSd1EJ5OV0vTsCcludVG1Zmn7%2BM3BAsSFlUPvhdg5UV7oDyMIzHSygo%2BGISfRA%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=18,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
- TestValidateProofHTMIsCaseSensitiveAgainstUppercasedMethod
./internal/dpop
Pass
Implementation
Explainer
What this requires
This is check 8 of RFC 9449 Section 4.3. Section 4.2 defines htm as "The value of the HTTP method (Section 9.1 of [RFC9110]) of the request to which the JWT is attached." The server compares it with the method of the request that actually carried the proof and rejects the proof if they differ.
HTTP method names are case-sensitive (RFC 9110 Section 9.1), so post is not POST.
Why it exists
Section 11.1 notes that a captured proof can only be replayed "at the same endpoint (the HTTP endpoint and method are enforced via the respective claims in the JWTs)". The method is one of the two parts of the request the proof covers. Without the check, a proof minted for one operation could be used for another on the same URI, for example a read turned into a write.
What non-compliance looks like
A server that ignores htm accepts a proof minted for GET on a POST request to the same URI. A server that compares case-insensitively accepts post where the client should have sent POST, hiding a client bug that a strict server elsewhere will reject.
At a token endpoint the correct response is HTTP 400 with invalid_dpop_proof (RFC 9449 Section 5).
How ProtocolSoup tests it
dpop.ValidateProof compares htm byte for byte with the request method after upper-casing the method. The token endpoints and the OID4VCI pushed authorization request endpoint pass POST, the only method their routes accept. The OAuth 2.0 protected resource and the OID4VCI resource endpoints pass the method of the incoming request.
TestValidateProofHTMIsCaseSensitiveAgainstUppercasedMethod signs a proof with htm set to post, validates it against a POST request, and asserts that it is rejected. That shows the comparison is case-sensitive, but it is not a different-method test. TestValidateProofRejectsHTMMismatch, in the same file but not listed on this row, validates a POST proof against a GET request and asserts rejection.
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-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?