Join our Newsletter — 33% off our NHI Course
Home› Guides› Proof-of-Possession Tokens for Beginners: Tying a Token to…
Guide Authentication

Proof-of-Possession Tokens for Beginners: Tying a Token to the Key That Owns It

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 1 December 2026 9 min read
On this page

A proof-of-possession token only works when the sender also proves it holds a secret key tied to that token.

This guide is for developers, new security staff and anyone who looks after apps, scripts or AI agents that call APIs. You do not need to know cryptography. If you know what an access token is, you are ready.

In short

  • Most access tokens are bearer tokens: whoever holds one can use it.
  • A proof-of-possession token is tied to a key that only the rightful client holds.
  • Two common standards do this for OAuth: DPoP and certificate-bound tokens over mutual TLS.
  • For workloads and AI agents, it means a leaked token alone is not enough. The private key must stay safe too.

What you will learn

  • Explain the difference between a bearer token and a bound token.
  • Describe how DPoP and mutual TLS tie a token to a key.
  • Know what binding protects against, and what it does not.
  • Ask useful questions about tokens used by services and agents.
Pass that works for anyone (bearer token)
a token that grants access to whoever presents it.
Pass tied to a key (bound token)
a token that only works with proof of a matching private key.
Secret half of a key pair (private key)
the part that never leaves the client and is used to sign.

What is a proof-of-possession token?

Think of a concert ticket. A plain paper ticket gets in whoever holds it. A ticket printed with your name gets you in only when you also show matching ID.

Ordinary OAuth access tokens are like the paper ticket. The OAuth bearer token standard says any party holding the token can use it in any way another holder could [1].

A proof-of-possession token is like the named ticket. The token is tied to a key pair. The client keeps the private key and uses it to prove, on each request, that it is the rightful holder [2][3]. People also call these sender-constrained tokens.

Where the comparison stops working: ID cards can be faked by eye. Here the proof is a digital signature, checked by maths, and the private key is never sent.

Why does it matter?

Tokens leak. They end up in logs, in proxy records, in copied settings and in stolen files. A bearer token that leaks can be used from anywhere until it expires. A bound token is of little use without the private key [2].

If you build apps or APIs

What could happen: a token copied from a log is replayed by someone else.

Check this: does your sign-in service support DPoP or certificate-bound tokens?

Next: Bearer Tokens for Beginners

If you run services, scripts or AI agents

What could happen: a workload's token is stolen and used to reach data as that workload.

Check this: where is the workload's private key kept, and who can read it?

Next: Access and Refresh Tokens for Beginners

If you review security

What could happen: you assume binding stops every attack, and miss malware running inside the app.

Check this: ask how the private key is protected on the client.

Next: DPoP Guide

What does it look like?

Here is a made-up API request that uses DPoP. Real values are long and random. These are fake.

Example only. All values are made up.

GET /reports/EXAMPLE HTTP/1.1                                 (1)
Host: api.example.test
Authorization: DPoP EXAMPLE-ACCESS-TOKEN-0000                 (2)
DPoP: EXAMPLE-SIGNED-PROOF-0000                               (3)
  1. The request the client wants to make.
  2. The access token. The word "DPoP" in place of "Bearer" tells the server this token is bound [2].
  3. In a real file, this line would hold a short signed proof. It is made with the client's private key for this exact request [2].

Why this is risky: if the token is copied, the copier still needs to sign a fresh proof. Without the private key, they cannot.

The safer way: keep the private key where only the workload can use it, and keep tokens short-lived as well.

How does it work?

Here is how DPoP works, step by step [2]:

  1. The client makes a key pair. It keeps the private key and can share the public key.
  2. It asks for a token with a proof. The proof is signed with the private key and carries the public key.
  3. The token is bound. The sign-in server records a short summary of the public key inside the token.
  4. Each API call carries a fresh proof. The proof is tied to the request method and address, with a time and a unique ID to limit replay.
  5. The API checks the match. It confirms that the proof's key matches the key recorded in the token.
Diagram titled How a token gets tied to a key. Four boxes joined by arrows: 1 Client makes a key pair and keeps the private key; 2 Token issued, bound to the public key; 3 Each request carries the token plus a proof signed with the private key; 4 API checks the proof key matches the token. A note underneath says a copied token without the private key is rejected, but malware inside the client can still sign proofs.
Figure 1. A bound token only works with a fresh proof from the matching private key.

The other common method uses mutual TLS. The client presents a certificate when it connects. The sign-in server ties the token to that certificate, and the API checks that the certificate on the connection matches. If it does not, the API rejects the request [3].

A worked example

This story is made up to show the idea.

Lars Okafor runs the platform team at a small logistics firm. A nightly reporting job, a piece of software with its own identity, pulls shipping data from a partner's API with an OAuth token.

One week, a debug setting leaks that token into a shared log. Anyone who can read the log could replay it until it expires. Lars revokes the token and asks how to stop this happening again.

The partner's sign-in service supports DPoP. Lars's team changes the job so it makes its own key pair when it starts. The private key stays in the job's protected storage and is never written to logs.

Now the job asks for DPoP-bound tokens. Each call to the API carries a fresh signed proof. A month later, a test copies a token from a log and tries to use it from a laptop. The API rejects it, because the laptop cannot sign a proof with the job's key.

Lars also notes the limit. If someone took over the job's own server, they could sign proofs as the job. So the team still watches that server closely, keeps tokens short-lived and reviews who can sign in to it.

Myths and mistakes

What people thinkWhat is true
Bound tokens replace HTTPS.DPoP does not replace HTTPS. It is used alongside it[2].
Binding stops every token attack.Code running inside the client, such as through cross-site scripting, can sign new proofs. DPoP treats this as out of scope[2].
DPoP proves who the client is.DPoP proves the sender holds a key. It is not a client authentication method[2].
Only browsers need this.Services, scripts and AI agents hold tokens too. Binding helps wherever tokens might leak.
You need certificates for every client.Mutual TLS uses certificates[3]. DPoP works with a key pair at the application level[2].

What can I do this week?

  • List the services and agents in your team that call APIs with OAuth tokens.
  • Check whether your sign-in service supports DPoP or certificate-bound tokens.
  • Search logs and settings files for tokens that should not be there.
  • For one workload, find out where its keys are stored and who can read them.

Checklist

  • I can explain the difference between a bearer token and a bound token.
  • I know DPoP and mutual TLS are two ways to bind tokens.
  • I know binding does not replace HTTPS.
  • I keep private keys away from logs and shared files.
  • I still keep tokens short-lived.
  • I protect the machine that holds the key.

Common questions

What is the difference between DPoP and mutual TLS binding?

Both tie a token to a key. Mutual TLS binds the token to the client's certificate, checked when the connection is set up[3]. DPoP binds it to a key pair, with a signed proof sent in a header on each request[2].

Is a proof-of-possession token the same as a sender-constrained token?

In everyday use, yes. Both names describe a token that only works for the client that can prove it holds the matching key. The DPoP standard describes itself as a way to sender-constrain OAuth tokens[2].

Does this help with AI agents?

Yes. AI agents are software workloads with their own identity, and they often hold tokens to call tools and APIs. If an agent's token leaks, binding means it cannot be replayed from somewhere else without the agent's private key.

Are these standards finished?

Yes. DPoP is RFC 9449, published in September 2023[2]. Certificate-bound tokens over mutual TLS are RFC 8705, published in February 2020[3]. Both are on the standards track at the IETF.

Where next?

Ready for the detail? Read the practitioner guide: DPoP Guide. It covers how proofs are built and checked, and how teams roll DPoP out.

Also useful:

Related NHI Mgmt Group resources: Token Signing Keys for Beginners, Session Tokens and Cookies for Beginners and API Keys vs OAuth Tokens Guide.

Key terms

Proof-of-possession
A way of proving you hold a secret key, used to tie a token to its rightful holder.
Bearer token
A token that works for anyone who holds it.
Sender-constrained token
A token that only works when sent by the client it was issued to.
DPoP
An OAuth method where the client signs a proof with its own key on each request.
Mutual TLS
TLS where both client and server present certificates to prove who they are.
Replay attack
Reusing a captured message or token to get access again.

Sources and further reading

  1. IETF, RFC 6750, "The OAuth 2.0 Authorization Framework: Bearer Token Usage", October 2012. https://www.rfc-editor.org/rfc/rfc6750.html (accessed 30 Nov 2026).
  2. IETF, RFC 9449, "OAuth 2.0 Demonstrating Proof of Possession (DPoP)", September 2023. https://www.rfc-editor.org/rfc/rfc9449.html (accessed 30 Nov 2026).
  3. IETF, RFC 8705, "OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens", February 2020. https://www.rfc-editor.org/rfc/rfc8705.html (accessed 30 Nov 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.