Skip to content

idtoken var source: emit a jti claim so relying parties can do replay prevention #9692

Closed

Description

@baloo42

Summary

The idtoken credential provider does not put a jti (JWT ID) claim into the tokens it mints. Relying parties that implement replay prevention for JWT bearer assertions key it on jti, so with Concourse tokens they cannot do it at all, and a leaked token stays replayable until exp. Adding a random jti per generated token would let them.

Why this matters

RFC 7523 section 3 defines jti as the claim a relying party uses to reject a replayed assertion, and it is what implementations key their single-use caches on.

The concrete case we hit is Keycloak's federated client authentication (Keycloak 26.6 and later), where a Concourse idtoken is presented as a client_assertion to authenticate an OAuth client.

Context

Discussion: https://github.com/orgs/concourse/discussions/9690

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions