OAuth DPoP: bind tokens to a client key to limit reuse
Learn how DPoP binds an access token to a public key, how each request proves possession of the private key, and which risks remain.
OAuth DPoP: bind tokens to a client key to limit reuse
Demonstrating Proof of Possession (DPoP, RFC 9449) binds an OAuth access token to a client’s public key. The client proves possession of the corresponding private key with a signed proof on each HTTP request. A bearer token can be used by whoever holds it; stealing a DPoP-bound token alone is usually insufficient because the attacker also needs the bound key. DPoP is an application-layer protection used over HTTPS, and it does not replace client authentication.
How it works
The client creates a public/private key pair and protects the private key.
For a token-endpoint request, it sends a signed proof JWT in the `DPoP` header. The authorization server checks the proof’s public key and binds the issued token to that key.
The client receives an access token whose type is `DPoP`. The authorization and resource servers must be able to verify its key-thumbprint binding.
For an API call, the client sends `Authorization: DPoP <token>` and a fresh `DPoP` proof for that HTTP request.
The resource server checks the proof signature and key binding, whether the proof matches the current request, and required values such as the access-token hash and any nonce.
A request looks conceptually like this; the token and JWT values are placeholders, not credentials:
GET /orders HTTP/1.1
Host: api.example
Authorization: DPoP <DPoP-bound-access-token>
DPoP: <signed proof JWT for this request>What does the proof bind?
Each proof is a signed JWT that includes the HTTP method, target URI, creation time, and a unique ID (jti). When presenting an access token to an API, the proof’s ath claim binds it to that token’s hash. If the server requires a nonce, include its current nonce. Servers check that the proof is for this URL and method and falls within an acceptable time window; they can track used proof IDs long enough to detect replay.
Create a new proof for every request. Reusing one can mismatch the method or URL and undermines replay protection. RFC rules for htu exclude the target URI’s query and fragment, among other normalization requirements; use a reviewed implementation instead of assembling the value by hand.
DPoP compared with other token binding
| Token type | What the API receives | Risk if it leaks |
|---|---|---|
| Bearer | Access token | Anyone holding it may use it until expiry or revocation. |
| DPoP-bound | Token plus proof of the private key for the current request | A thief with only the token generally lacks the bound key needed to reuse it. |
| mTLS-bound | Token plus client-certificate proof on the TLS connection | Depends on certificate private-key custody and TLS setup across apps and proxies. |
DPoP can be used alongside a client’s existing authentication method, but a DPoP proof does not authenticate client_id. The authorization server decides separately whether client authentication is required. RFC 9700 requires public-client refresh tokens to use sender constraint or rotation; DPoP is one possible sender-constraining option.
Limits and operational decisions
**Private-key exposure weakens protection.** Decide whether the key can be held in secure OS storage or a non-exportable key, and how tokens are reissued after key loss or rotation.
**It does not prevent browser XSS.** If XSS code can use the DPoP key in the app’s context, an attacker may create proofs through the client. XSS defenses, CSP, and dependency management still matter.
**All relevant servers and proxies must support it.** Check that gateways, resource servers, introspection, and logging or observability tools handle the `DPoP` scheme correctly. A proxy that changes the proof or original method/URI can cause validation to fail.
**Nonce challenges may require a retry.** If a server sends a DPoP nonce challenge, create a new proof with that server’s nonce and retry. Do not reuse an old nonce or proof.
**HTTPS remains required.** DPoP does not replace TLS. Use HTTPS for token and resource servers and validate certificates normally.
Before implementation, check authorization-server and protected-resource metadata for supported DPoP algorithms and whether DPoP is required. In a test environment, verify rejection when a proof is missing or bound to another key, URL, method, or access token, and verify that a fresh proof succeeds after a nonce challenge. Do not put real tokens or private keys in test output or logs.
Summary
DPoP binds an access token to a public-key thumbprint and requires a matching private-key proof on each API request, reducing the chance that a stolen token can be reused. Generate a proof for the current method, URL, and token, and validate binding and replay protections on the server. XSS, private-key theft, and TLS issues remain separate risks.
References
[RFC 9449 — OAuth 2.0 Demonstrating Proof of Possession (DPoP)](https://www.rfc-editor.org/rfc/rfc9449.html)
[RFC 9700 §2.2 — Token Replay Prevention](https://www.rfc-editor.org/rfc/rfc9700.html#section-2.2)
[RFC 8705 — OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens](https://www.rfc-editor.org/rfc/rfc8705.html)