Get started
Docs menu

Advanced OAuth

Attestation-based client authentication

On this page

Introduction

An application that runs on a person's own device, such as a mobile application, cannot keep a secret. So Signari cannot tell the genuine application from a copy of it. "Attestation-Based Client Authentication" (ABCA) lets a trusted third party vouch for the genuine one.

Signari implements the draft standard draft-ietf-oauth-attestation-based-client-auth-10, of 6 July 2026, the current draft at the time of writing. It verifies the attestation and a fresh proof from the device at the token endpoint.

You register the public keys of an attester you trust with signari attester add. See every command.

The problem

A public client has no secret. Anything holding its client_id is indistinguishable from the real one, because there is nothing to prove otherwise. That could be a repackaged application, a script or a modified build.

Proof Key for Code Exchange (PKCE, see the glossary) binds a code to a one-time secret. Demonstrating Proof of Possession (DPoP) binds a token to a key. Neither says anything about what holds that key. A repackaged application generates a valid DPoP key and produces valid proofs.

ABCA adds a third party. A Client Attester vouches that a particular key belongs to a genuine instance of a known application. The instance then proves it holds that key.

So the token endpoint learns two things it could not learn before: that this is the application Signari thinks it is, and that this is the instance the attester saw.

Two artefacts

The application sends two headers, each holding a signed JSON Web Token (JWT):

TextOAuth-Client-Attestation:      signed by the ATTESTER, carries cnf.jwkOAuth-Client-Attestation-PoP:  signed by the INSTANCE key named in that cnf

The first is long-lived and reusable. The second, the "proof of possession" (PoP), is per-request. That split is what lets an attester issue an attestation once, offline, while the instance proves liveness on every call.

It is also why each artefact's typ is checked. Both are signed JWTs, and the attestation travels in a header on every request. Without the PoP's typ check, anyone who captured an attestation could present it as the per-request proof. TestAPoPWithTheWrongTypIsRefused presents exactly that, and expects a refusal.

These two headers are all the application sends. Signari reads the method registered for the application, not the request body, to decide that client authentication applies. So an application registered for this method needs no secret, and one that sends neither header is refused.

Decisions the draft leaves open

Symmetric attester keys are refused. §4 permits an attestation to be "signed or integrity protected with a Message Authentication Code". Signari accepts asymmetric signatures only.

A symmetric attester key is a key Signari holds. So Signari could create attestations that cannot be told apart from the attester's own. Such an attestation proves no more than the client_id Signari already had.

The command line refuses to register a JSON Web Key Set (JWKS) containing private keys, for the same reason. The mistake is refused when the key set is registered.

A challenge is mandatory, because Signari offers the endpoint. §5.1 makes the challenge claim OPTIONAL. But §6.1 requires it once an endpoint exists: "If the Authorization Server offers a challenge endpoint, the Client MUST retrieve a challenge and MUST use this challenge."

Challenges are single-use. The draft does not require it. With single use, a captured PoP cannot be used again at all, rather than only for a short time. It costs one UPDATE … WHERE used_at IS NULL, the same technique authorization codes and credential nonces use in Signari.

jti replay detection as well. It is redundant while challenges are mandatory. It still detects replay if a deployment later turns challenges off.

An attestation dated in the future is refused. §7.1 asks only that an attestation be fresh enough, by its iat or its exp. A future iat moves the window in which the attestation can be used, rather than lengthening it. An attester with a badly wrong clock produces one by accident. Up to 30 seconds of clock skew is tolerated, so an attester whose clock is slightly fast can still attest.

Testing

Every rule of §7.1 and §7.2 has a test that makes exactly one thing wrong, so a failure names the rule. Breaking any one check on purpose makes its test fail, except for the three described at the end of this section.

Where another fault would also cause a refusal, the test asserts the reason. TestAnAttestationFromAnUnknownAttesterIsRefused checks that the attester was not trusted. An attestation that fails to parse is refused too, so a test that asserted only an error would pass with the trust check deleted.

Some checks exist for their error message. An absent exp, an absent challenge and a missing DPoP proof each have a check that names what is missing. Without those checks the request would still be refused, but as an expiry in 1970, an unknown or expired challenge, or a key mismatch. Each of those sends an integrator to look at a clock, an expiry or a key that is fine. So their tests assert the message.

Three checks are backed by an adjacent one. Removing any of them breaks no test, and leaves Signari correct:

  • Exactly one signature: a compact JSON Web Signature (JWS) carries one by construction, so the check cannot be reached.
  • The presence of cnf.jwk: an absent value fails the JSON Web Key (JWK) parse on the next line.
  • A usable cnf key: an unusable key cannot verify the PoP.

Not implemented

  • DPoP combined mode (§5.2, §7.3), attest_jwt_client_auth_dpop. It is not advertised in metadata either, because Signari would refuse it.
  • §6.2 challenges on previous responses. Signari returns a fresh challenge on use_attestation_challenge, which is the case §7.4 makes mandatory. Attaching one to every successful response is optional, and not done.
  • Resource-server-side attestation (§7.6, "as an additional security signal").

What is implemented, against draft-10 (24 August 2026)

internal/abca/abca.go tracks draft-ietf-oauth-attestation-based-client-auth-10 (6 July 2026). Implemented in full:

  • The §6.1 challenge endpoint, and both header artefacts.
  • All twelve §7.1 checks. They include exactly one header, the required claims, asymmetric algorithms only, and a signature by a trusted attester. They also include a cnf that is not a private key, freshness, and a client_id that matches sub.
  • §7.2 rules 1–8, including rule 5, refusing a cnf that carries a private key. Rule 9, replay, is met through single-use challenges, which the draft leaves to each deployment.
  • Single-use challenges, swept by the janitor, Signari's clean-up job.
  • The three §7.4 error codes (use_attestation_challenge, use_fresh_attestation, invalid_client_attestation).
  • client_attestation_pop_methods_supported in discovery.

The most important check is the challenge match. Parsing the challenge claim without verifying it against a value Signari issued reduces attestation to a signed assertion whose inputs the application chose. Replay is then possible.

That check, the jti replay guard and the iat freshness bound are each tested individually, rather than assumed to follow from the others.

Changed Signari v0.2