What must a DPoP proof's htu claim match?

htu claim matches the request URI ignoring query and fragmentRFC 9449 §4.3MUSTRoles: authorization_server, resource_server

Requirement as recorded in the ProtocolSoup registry

The htu claim matches the HTTP URI value for the HTTP request in which the JWT was received, ignoring any query and fragment parts.

Read §4.3 in RFC 9449

Self-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 htu is the token endpoint URI. 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. 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IlZxbUJod0lPYm5YbDdvazhZaTNjYURabmJSOThGTFVDNjNvYXdtaVg0UmsiLCJ5IjoiUFJlZkZId2dfMjJ5VFBMZmtBd2NtRTNBbVRJdWNLWG80RGsyMGNxZU5LUSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzYxNSwianRpIjoiNjA5Njk2YzItZGVkYS00YjM0LThmZGYtMTA0N2M2MzA0MThhIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.RqLDSIjuS42K4a5-l7nF3Eb0w_6eLZU7zcAMl5iFGD4a6zaYeKv-0sA_QZW6xp0Hb4VEo2qFF4QaTpXV_2wrTw
    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: a65ba0099e353cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:26:56 GMT
    Fly-Request-Id: 01M95RJGGD68SP26RXTTVMB83R-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=yvCq%2BlvGfjSrUw2rbka8N%2BpmZTcP4XbpljdPG8LBEeeNWgGvzF1JjToegbTDj4BjGVuZP1fqsdN9FATkGCx%2FaXzjQOpeKPrrdVoZAYuvlT9GBZh4QBlt7fqUWYR9nJTQZeo%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=3,cfOrigin;dur=201
    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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiMFZHc0pTdU9sbzRDbzVtcE9fQWNnZFllbGd2cjdGaHJ0UVNaX3dQaTgtUSJ9LCJleHAiOjE3OTY1NjcyMTYsImlhdCI6MTc5NjU2MzYxNiwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS0zYjBlMTkxOWZhYWNlODQ1IiwibmJmIjoxNzk2NTYzNjE2LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.p9gHgA08760w6QapLIfh72RSltI7lb0oK8KFEhJDMDOWg8WRgjhqswwgESDcCPqtMWP2oiPU5tVloAaqgB4_XsZ9SvLtzJF5rpcnYHGAoM1POq9Avxs4XpD_GzDTgMHoRwyfaqSDXejuYxrykgr1t-3ty_K2y8-4svtMcrjAlBGHZSHs_FG6TLS6_6r7v_wQCvhaX7baVauH94MulJT-Lh2AJzjBFxOUvrfHfCDuPmESlUB44Aq0gGsyuZ8x2mcwl-wMhwgXom1VZ-gJ0VcuU4EP_MqUm2tfAKXnEWpwHZi1OLt7hpNNkeHNi3o3BEV5g_xOZVo2Lj6XQCLPmMqjPA","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 an otherwise valid DPoP proof whose htu names /oauth2/introspect on the same server.

Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.

  1. 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: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IlpFQ3FXdVRMb3JmNkVkVXpOTTRaRnRaVXVrMGJhalVpYVVCWUdBTURxRmciLCJ5IjoiSWVSUnM1VVVWTGliREd4aGFMZUM0R1l4dDdWbXlQWDFjcldfZWJVTHBDayJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi9pbnRyb3NwZWN0IiwiaWF0IjoxNzk2NTYzNjE5LCJqdGkiOiI4OGM4NjY1OS0yNGIyLTRjYjUtYWU2Yi05MmFiNWYyYTZkZDEiLCJub25jZSI6Ii05NFZWaHl5alNrYXdYLWE4Umt3TjF1aVZmN19ZQ3JUIn0.n8DAU26kAwy6LJLFZuQ9D1vyYOLbUFjwBiS09EiRyJoAnaHozR7lihyuStDUK-P7Amk1iUWa4Kli4PytJOJDBw
    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: a65ba0229ec33cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:27:00 GMT
    Fly-Request-Id: 01M95RJMDDS5817KFD6GRHV9PB-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=xC49FjIXdxopK49g4cebIl%2BrnkajTRcMQNsBgFIoNGMZpoFwNdzd4%2FpBiKlhnAasEP2UKWd5%2FvUqLG%2BbQios2OIN1LuaJbBOybRj8Dh8A953r9MiKvfRr%2B33nAeSnREoaYA%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=4,cfOrigin;dur=201
    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 Glass

Tests

Implementation

Explainer

What this requires

This is check 9 of RFC 9449 Section 4.3. Section 4.2 defines htu as "The HTTP target URI (Section 7.1 of [RFC9110]) of the request to which the JWT is attached, without query and fragment parts." The server compares it with the URI the request was received on, with query and fragment removed, and rejects the proof if they differ.

Section 4.3 also says servers SHOULD apply syntax-based and scheme-based normalisation (RFC 3986 Sections 6.2.2 and 6.2.3) before comparing, to reduce false negatives.

Why it exists

The URI is the other part of the request a proof covers. Section 11.1 relies on it to limit a captured proof to "the same endpoint". Without the check, a proof captured at one endpoint could be replayed at any other endpoint that accepts the same key, such as a token endpoint proof reused at a resource server.

What non-compliance looks like

A server that skips the check, or compares only the path, accepts a proof minted for another host or endpoint. A server that compares raw strings without normalisation fails the other way: it rejects a valid proof because the client wrote :443 or an upper-case host.

At a token endpoint the correct response is HTTP 400 with invalid_dpop_proof (RFC 9449 Section 5).

How ProtocolSoup tests it

dpop.ValidateProof passes both htu and the server's own URI through NormalizeHTU, which requires an absolute URI, lower-cases scheme and host, drops the default port for http and https, removes query and fragment, and keeps the escaped path as it is. The server URI is built from the configured base URL plus the endpoint path, never from the request's Host header. The path is not further normalised: dot segments and percent-encoding case are compared as written.

TestValidateProofHTUNormalizationEquivalence signs a proof with htu of https://x.test:443/token, validates it against https://x.test/token, and asserts that it is accepted. TestValidateProofHTUMismatchIsRejected validates a proof for /oauth2/token against /oauth2/introspect and asserts rejection. Neither registry test includes a query or fragment; TestNormalizeHTUStripsQueryAndFragment, in the same file, covers that by calling NormalizeHTU directly.

Messages that carry it

Related requirements

All RFC 9449 requirements · OID4VCI protocol page