What must a DPoP proof's ath claim contain?

ath claim equals the hash of the access tokenRFC 9449 §4.3MUSTRoles: resource_server

Requirement as recorded in the ProtocolSoup registry

Ensure that the value of the ath claim equals the hash of that access token.

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 presents a DPoP-bound access token to GET /oauth2/resource with Authorization: DPoP and a DPoP proof whose ath is the base64url-encoded SHA-256 hash of that token. The proof carries the nonce the resource 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.GET https://protocolsoup.com/oauth2/resource200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    GET /oauth2/resource HTTP/2.0
    Authorization: DPoP eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiYXQrand0In0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiZUd4M1FXbDRzcXZUV0pITGRINDhVMnRWREkxNUNzS1lrejZJRkxXVlNkMCJ9LCJleHAiOjE3OTY1NjcyMzksImlhdCI6MTc5NjU2MzYzOSwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS1mOGYzODJjNjYxOGM3OTkyIiwibmJmIjoxNzk2NTYzNjM5LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.qM_C-ftjbeWCsaKeZiZb-jrda5ifmU6NORhugzpMKQHxK-BDvNc0HraxBD8IF7ida1DF69IURuCTQL7ZPTzfJh40ZbnTEyic0RdDIdIv2s53_mP4tm5dXh4xSywJSshFw6CzmZLsc0DNhm-OxjgoAUXa0bFlVmLgQoL4zuvfH61jQpThQhfYcG2DJHA32AuU088-1DXU5MJ0Jngm0SK1-zZOzNmCFJE51kqexty4r00w9E_ICbiYsfzy_a-TtXwJ8UwdYJBsVT8uGD_zKObYiLDlI7bN-16czSWt00AQpY5tDMpO3LmVmidOJfBLTQ25bdIUW3PDOCcEtHDXC_FGhQ
    Dpop: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IkwtenV4RXRoYS14dmRTUXk0RFA4QURBQUdjRWRObEljTmo4OEZEZ240V0UiLCJ5IjoiOFZSeEh0N296VEUzLXBWV3ZKQnMwY1RFUldYMlpvTmxJTlVfekczTWNxRSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJhdGgiOiJXUkxHWmpWc1A3V3Q0LTIzN0RWOFFTSk92akVJdElnUUhOWTB0dW5kcmtnIiwiaHRtIjoiR0VUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi9yZXNvdXJjZSIsImlhdCI6MTc5NjU2MzY0MCwianRpIjoiMmFlNDBiYzQtYjAyMy00ODY1LWFmOTUtZjAxNThhZTA0OWVjIiwibm9uY2UiOiJBWE9Ba1FnMGtZSHUyNEtXQTBndkZ4Zk5WR2prVkxQTCJ9.14Df1RmW91-zt_TZRCpt0jka4zxFAMqEr4QAqbwoxvnaR03ZikeHuVEviB1_0mnduI5djgkpHMLxxLtsMpnp_Q
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65ba0a5dc9d3cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:27:21 GMT
    Fly-Request-Id: 01M95RK8XPKZR5VD89FHC8E0QR-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=6MghIo9I7R2ChAqtCRwdYczrNyVRTPYQH%2Bg9yaGdoZQJwfPhkvjBQojY1mIzJE1fEbfvqq0R2hDQrqHrCq8wqkWPSh8tYCIR5iPKX2u3qZ2rsnJXHGRilbncIljrpL7YV9s%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=4,cfOrigin;dur=206
    Speculation-Rules: "/cdn-cgi/speculation"
    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
    
    {"data":"protected resource payload","dpop_bound":true,"scope":"api:read api:write","sub":"machine-client","token_type":"DPoP"}
    

Failing exchange

Rejected, as requiredConformance client

The conformance client presents a DPoP-bound access token to GET /oauth2/resource twice, each time with a proof signed by the token's own key and carrying the resource's DPoP-Nonce: one whose ath is the hash of a second access token bound to the same key, and one with no ath claim.

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

  1. 1.GET https://protocolsoup.com/oauth2/resource401 Unauthorized

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    GET /oauth2/resource HTTP/2.0
    Authorization: DPoP eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiYXQrand0In0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGlu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oiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi9yZXNvdXJjZSIsImlhdCI6MTc5NjU2MzY0OCwianRpIjoiZTk5NzdkYTgtNTg1ZC00YjE3LTkwM2MtNzkwMzhiMDFjNmYwIiwibm9uY2UiOiJBWE9Ba1FnMGtZSHUyNEtXQTBndkZ4Zk5WR2prVkxQTCJ9.gDteL1qdhdgCsahfuESGcD2ThSjfFqsaSXTWN_GCefEKLlf_5GNgtK7ufVYTPlpjuLKdVH0YCq1FjE8Lq7h9FA
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    

    Response

    HTTP/2.0 401 Unauthorized
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65ba0d7db213cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:27:29 GMT
    Fly-Request-Id: 01M95RKGQP2CKS3ENRGYBNJ0HZ-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=FjONZX8G%2BbfENqYaXM5eE3qDfLYyr3qnaS9DfmpAZvU3Wdhke6%2BXI4WbYlXrJoZf4750k%2BFyaKIewUQI0X1iGP6Y8UrQli6ovAFNftqUhA0wx5z%2F5fymqzwLwVOsCLmQhe4%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=3,cfOrigin;dur=208
    Speculation-Rules: "/cdn-cgi/speculation"
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    Www-Authenticate: DPoP error="invalid_token"
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"error":"invalid_token","error_description":"invalid DPoP proof: dpop: ath does not match the presented access token"}
    
  2. 2.GET https://protocolsoup.com/oauth2/resource401 Unauthorized

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    GET /oauth2/resource HTTP/2.0
    Authorization: DPoP eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiYXQrand0In0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiYWUxbnpFNlNYQ2UtYTc4R1BwaEJ5bmZDa1Fqa1FvVERWZGVacFJJSEdLbyJ9LCJleHAiOjE3OTY1NjcyNDUsImlhdCI6MTc5NjU2MzY0NSwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS01Mjg2MTVlMDdjYzBiZDcyIiwibmJmIjoxNzk2NTYzNjQ1LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.q1wrMw9eNVnUMR8z01kwAcXYSNUML4vvn6p-8D3mPaD2ldEs4cwsZfbcFLDdVYpl_O3dIpSNJHW1V4YIB2WRRgRN0UnnY2XJUbd8qM5wFIOWzYeV2oX5Tu3qHvu62Mo-ZfBnzMBMff7DnxBAzC1JFpFAJTXVrS7qxZjmXCBk7FGbtB8iwBOJ-2OCstyfc_9Aei8TCQoZVt0OuBE1uyOtfpqW8ZH8svZ75yTMGhjHFQT6_C7xrm-gOqoYvOSrSe--vNKEepOWcBx3q4wJwREs2NcWK_i0MJXV0DMJsxnfF-9HTHtDmfJKJRCjNNQfVmKoyH1wVgl1v23IvQEl-cjGRA
    Dpop: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IjJBVUFZY0JDajA5QURrbDF0UVZGWmFFbXRRam5kNHBGZ094Mk5LbE50VEUiLCJ5IjoiMDFZTWIxTG54cGxKX21rd29zRmpKTlRBOVk5ZFhXLWRQVFlkdW43SGFZTSJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJHRVQiLCJodHUiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiaWF0IjoxNzk2NTYzNjQ4LCJqdGkiOiI3N2RhYzQ2YS1mYTBiLTRmMGQtYmM3Ny0yNjBhMzUwNTgwY2MiLCJub25jZSI6IkFYT0FrUWcwa1lIdTI0S1dBMGd2RnhmTlZHamtWTFBMIn0.-zKc74W2OzwnvJ0CZX0C630LDPT78mk5KCgd_-_jbBPHtVbDg_AXMo4elSQN29Hx43CZ14iQJYL8MLy4BBWHzw
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    

    Response

    HTTP/2.0 401 Unauthorized
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65ba0de2a4f3cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:27:30 GMT
    Fly-Request-Id: 01M95RKHQ1F4YFWDWSMYSEWPK3-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=Uc7tvigf4vrW89jyCR5wJDVV7DpxIWiw1aY6dnqFYG99VFV1dazjQdL1i60QOWVNHt45tnHE1fqalI3ARXg6jgfSjBbUHNrEu8DmPO8Y09xco1BhkrWW0d0x77Xau2OEaH4%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=5,cfOrigin;dur=211
    Speculation-Rules: "/cdn-cgi/speculation"
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    Www-Authenticate: DPoP error="invalid_token"
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"error":"invalid_token","error_description":"invalid DPoP proof: dpop: ath does not match the presented access token"}
    

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 the first half of check 12 of RFC 9449 Section 4.3, which applies when a proof is "presented to a protected resource in conjunction with an access token". The resource server computes the hash of the access token it received and compares it with the proof's ath claim. Section 4.2 defines the value: it "MUST be the result of a base64url encoding (as defined in Section 2 of [RFC7515]) the SHA-256 [SHS] hash of the ASCII encoding of the associated access token's value."

A missing ath fails this check too, because Section 4.2 makes the claim required in this context.

Why it exists

Section 11.2 states the reason: "The ath claim limits the use of pre-generated DPoP proofs to the lifetime of the access token." Without it, a proof minted for a resource URI works with any token bound to the same key, including tokens issued later. Section 11.8 adds that the binding relies on the SHA-256 hash being "sufficiently unique so as to reliably identify the access token".

What non-compliance looks like

A resource server that skips ath accepts a valid proof alongside a different access token for the same key. A proof captured or pre-generated while one token was live keeps working after that token is replaced.

The second half of check 12, that the token's bound key matches the proof key, is a separate check.

How ProtocolSoup tests it

The OAuth 2.0 protected resource and the OID4VCI Credential, deferred credential and notification endpoints pass the access token from the Authorization: DPoP header to dpop.ValidateProof, which compares base64url(SHA-256(token)) with ath in constant time. A mismatch at the OAuth 2.0 protected resource returns HTTP 401 with invalid_token; at the OID4VCI endpoints it returns HTTP 401 with invalid_dpop_proof. Both carry a WWW-Authenticate: DPoP challenge. Token endpoints do not pass an access token, so ath is not required there.

TestValidateProofATHMustMatchAccessToken signs a proof whose ath is the hash of one token, asserts that it validates with that token, and asserts that it is rejected when a different token is supplied. No registry test covers a proof with ath missing.

Messages that carry it

Related requirements

All RFC 9449 requirements · OID4VCI protocol page