Skip to content

feat(auth): allow-list token clients #339

Closed

Description

@uniqueg

Why?

Some apps must accept tokens only from specific clients, not by audience. Example: TES backends behind the proTES gateway should accept only tokens obtained by proTES, whose audience isn't predictable when the token is issued. LS Login identifies the client in the client_id claim (RFC 9068; there's no azp). FOCA can only check aud today.

How?

  1. Add an option to security.auth (e.g. clients) listing the accepted client IDs, checked against client_id (and azp where an identity provider uses that).
  2. It can be used instead of audience (with verify_audience: false) or in addition to it; adjust the startup check that requires an audience for trusted issuers accordingly.
  3. Tokens from other clients are rejected with 401.

Acceptance criteria

  • Tokens whose client isn't listed are rejected; tests cover client_id, azp and missing claims.
  • Configuring clients without audience passes the startup check; documented.

Activity

  1. added
    priority: medium
    status: triage
    type: auth
    type: feature
    workload: hours
    on Oct 21, 2026
  2. added
    status: blocked
    status: in progress
    and removed
    status: triage
    status: blocked
    on Oct 21, 2026
  3. uniqueg commented on Oct 21, 2026

    @uniqueg
    MemberAuthor

    Done in #364.

  4. removed
    status: in progress
    on Oct 21, 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

    priority: mediumtype: authtype: featureworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions