Skip to content
IAM Insights

Briefing · Article · source · published · Boston Identity

RFC 8705 lets OAuth bind tokens to a client certificate, and leaves the proxy in front of the API to the deployer

RFC 8705, a 2020 IETF standard by Brian Campbell, John Bradley, Nat Sakimura and Torsten Lodderstedt, gives OAuth two separate tools: client authentication with a TLS certificate, and access tokens bound to that certificate. The resource server's certificate check is a MUST. Renewing a certificate voids the tokens bound to it, and how a TLS-terminating proxy passes the certificate on is outside the RFC's scope.

RFC Editor · Brian Campbell, John Bradley, Nat Sakimura, Torsten Lodderstedt · February 28, 2020 · read

share
8,238 words. With Brian Campbell, author, Ping Identity; John Bradley, author, Yubico; Nat Sakimura, author, Nomura Research Institute; Torsten Lodderstedt, author, YES.com AG.
01

What's happening

Finding3
BI-FIND-2020-0008Lead finding

Under RFC 8705 the resource server MUST reject an access token when the client's mutual TLS certificate does not match the one bound to it.

Under RFC 8705 an authorization server can bind an access token to the certificate the client used for mutual TLS at the token endpoint, which the authors say keeps stolen or replayed tokens from being used by unauthorized parties. The resource server MUST take the client certificate from its own TLS layer, check that it matches the certificate tied to the token, and reject a mismatch with HTTP 401 and the invalid_token error. In a JWT the binding SHOULD be the certificate's SHA-256 hash in an x5t#S256 confirmation member; the resource server can also learn it by introspection. Because the check only proves possession of the key, the resource server does not need to validate the certificate's chain, but it does have to know in advance that mutual TLS will be used.

high confidencebest source: independent researchobserved Feb 2020 – Sep 2026EvidenceCertificate-bound access tokensSection 1
Also reported in +1 briefing
flag a problem with BI-FIND-2020-0008
Figure steps
  1. The client requests a token over mutual TLS, presenting its certificate, here called C.
  2. The authorization server binds the access token to C. In a JWT the binding should be the certificate's SHA-256 hash in a cnf x5t#S256 member; introspection can carry it instead.
  3. The client calls the resource server over mutual TLS with the same certificate.
  4. The resource server takes the certificate from its own TLS layer and must reject the call unless it matches the token's binding. It does not need to validate the certificate's chain.
  5. A copied token presented over a different certificate fails the match and gets HTTP 401 with the invalid_token error.
  6. When a load balancer or proxy terminates TLS, the RFC leaves how the certificate details reach the server outside its scope.
Fig. 1

The authorization server records a hash of the client's certificate in the token, and the resource server compares it with the certificate on its own TLS connection, so a copied token sent over another certificate is refused with a 401.

Sequence as RFC 8705 describes it in sections 3, 6.2 and 6.5Source dated February 28, 2020Passage: Certificate-bound access tokens

Swipe for the full figure →

BI-FIND-2020-0009

An attacker could present a same-subject certificate from another CA the server trusts, so the server SHOULD accept only a limited number of CAs.

Mutual-TLS client authentication is a separate option from token binding, and its PKI method depends on which certificate authorities the server trusts. That method (tls_client_auth) validates the chain and identifies the client by exactly one registered subject value, a distinguished name or a subject alternative name. The security section warns that an attacker could present a certificate with the same subject from a different CA the server trusts, so the server SHOULD accept only a limited number of CAs whose issuance policy meets its requirements; whether to check revocation is left to the server. The self-signed method validates no chain and relies on certificates the client registered, and a public client with no credentials can still get certificate-bound tokens by presenting a self-signed certificate; the server SHOULD bind that client's refresh tokens too.

high confidencebest source: independent researchobserved Feb 2020EvidenceMutual TLS for OAuth client authenticationSecurity and privacy considerationsCertificate-bound access tokens
flag a problem with BI-FIND-2020-0009
BI-FIND-2020-0010

When a client updates its certificate, the access tokens bound to the old one are invalidated, which the RFC says can be handled like expiry.

When a client updates its certificate, the access tokens bound to the old one are invalidated, which the RFC says can be handled like expiry: the client gets a new token, typically with a refresh token, and retries. An authorization or resource server MAY terminate TLS at a load balancer, reverse proxy or other intermediary, but how the certificate details then reach the application server securely is outside the RFC's scope. Binding tokens issued straight from the authorization endpoint through the implicit grant is out of scope too.

high confidencebest source: independent researchobserved Feb 2020 – Jul 2026EvidenceSection 4
Also reported in +2 briefings
flag a problem with BI-FIND-2020-0010
02

Section by section

6

showing 6 of 6

[1]

Scope: two distinct mechanisms, mutual-TLS client authentication and certificate-bound tokens

Brian Campbell, Ping Identity · John Bradley, Yubico · Nat Sakimura, Nomura Research Institute · Torsten Lodderstedt, YES.com AG

Standards

The four authors define two OAuth 2.0 options that can be used apart: client authentication with a mutual-TLS certificate, which they offer as stronger than a shared secret, and access tokens bound to the client's certificate, which they say stops stolen or replayed tokens being used by others. The two "don't necessarily need to be deployed or used together." The client-authentication methods also apply at the introspection, revocation and CIBA endpoints.

technical artifactfrom published text

[2]

Mutual TLS for OAuth client authentication: PKI and self-signed methods

Brian Campbell, Ping Identity · John Bradley, Yubico · Nat Sakimura, Nomura Research Institute · Torsten Lodderstedt, YES.com AG

Standards

In the PKI method (tls_client_auth) the server validates the certificate chain and matches exactly one subject value the client registered, a distinguished name or a subject alternative name; whether to check revocation is the server's decision. In the self-signed method the client registers its certificates through jwks or jwks_uri and no chain is validated. Either way the client MUST send its client_id, and the server MUST enforce the client-certificate binding or return invalid_client.

technical artifactfrom published text

[3]

Certificate-bound access tokens: x5t#S256, introspection and the resource server check

Brian Campbell, Ping Identity · John Bradley, Yubico · Nat Sakimura, Nomura Research Institute · Torsten Lodderstedt, YES.com AG

Standards

The authorization server binds the token to the certificate the client used at the token endpoint. In a JWT the binding SHOULD be a cnf member holding x5t#S256, the certificate's SHA-256 hash; introspection can carry it too. The resource server MUST match the certificate on its own TLS connection against the binding and reject a mismatch with HTTP 401 and invalid_token. Public clients can bind tokens with self-signed certificates, and their refresh tokens SHOULD be bound as well.

technical artifactfrom published text

[4]

Deployment: endpoint aliases, resource server trust, certificate expiry, no implicit grant, TLS termination

Brian Campbell, Ping Identity · John Bradley, Yubico · Nat Sakimura, Nomura Research Institute · Torsten Lodderstedt, YES.com AG

Standards

An authorization server MAY publish mutual-TLS endpoint aliases (mtls_endpoint_aliases) to keep that behavior away from browsers and other clients; a mutual-TLS client MUST use an alias when one is listed. The resource server need not validate the client certificate's chain, which there only proves possession. A renewed certificate invalidates its bound tokens, which the client can treat as expiry. Implicit-grant binding and certificate forwarding from a TLS-terminating proxy are out of scope.

technical artifactfrom published text

[5]

Security and privacy considerations: refresh tokens, thumbprints, spoofing, X.509 parsing, TLS 1.3

Brian Campbell, Ping Identity · John Bradley, Yubico · Nat Sakimura, Nomura Research Institute · Torsten Lodderstedt, YES.com AG

Standards

For confidential clients, refresh tokens are bound indirectly, through the client's certificate authentication. Under the PKI method the server SHOULD accept only a limited set of CAs, or an attacker with a same-subject certificate from another trusted CA could pose as the client. Implementers SHOULD use an established X.509 library and not write their own validation. Before TLS 1.3 the client certificate is sent unencrypted, so third parties could use it to track a client.

technical artifactfrom published text

[6]

Appendix B: relationship to OAuth Token Binding

Brian Campbell, Ping Identity · John Bradley, Yubico · Nat Sakimura, Nomura Research Institute · Torsten Lodderstedt, YES.com AG

Standards

Appendix B compares the RFC with the OAuth 2.0 Token Binding draft: both bind a token to a key the client proves over TLS, and Token Binding's bare keys avoid managing certificates. In 2020 the authors judged that Token Binding had "relatively little support" in development tools, while mutual TLS had "widespread support" and could be deployed at once. They expected the two to be deployed in parallel. They give no data for that judgement.

technical artifactfrom published text

Terms used

IETF
The body that writes the internet's protocol standards, including OAuth, JWT, and the workload-identity work known as WIMSE.
OAuth
The web's standard framework for delegated authorization — letting one application act at another on a user's (or machine's) behalf without sharing passwords.
TLS
Transport Layer Security, the protocol that encrypts traffic between two systems and lets each check the other's certificate. Mutual TLS (mTLS) makes both sides prove who they are, which is how many workload identity schemes authenticate services.
Access token
An OAuth 2.0 credential, usually an opaque string, representing a specific scope and lifetime of access that the resource server enforces when a client presents it.
Resource server
In OAuth, the API that holds the protected data and accepts access tokens.
TLS termination
Ending a Transport Layer Security (TLS) connection at a proxy or load balancer, which forwards the request on a new connection; the caller's certificate does not travel past it.
RFC
Request for Comments: the numbered document series in which the Internet Engineering Task Force publishes internet specifications, from standards such as RFC 8693 to informational notes. A draft is not an RFC.
mTLS
Mutual TLS: both sides of a connection present and verify a certificate during the TLS handshake, so the server authenticates the client as well as the client authenticating the server.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity