Skip to content

authn: refuse authorization grants as access tokens by default #596

Backlog

Description

@jhrozek

Why. An authorization grant (an ID-JAG, typ: oauth-id-jag+jwt, or a Workload Authorization Grant,
typ: oauth-wag+jwt) is redeemed at an authorization server. It is not an access token. ToolHive refuses both when
they're presented as an access token or a subject token. authn's default deny list has the ID-JAG type but not the
WAG type, so authn accepts a WAG as an access token unless the caller sets a typ policy.

What. Add the WAG type to jose, plus a check that recognises either grant type. Add WAG to the default deny
list.

Done when. A WAG and an ID-JAG are refused as access tokens by default, in any spelling RFC 7515 allows.

Activity

  1. added
    needs-triage
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions