Skip to content

feat(auth): require the at+jwt token type #338

Closed

Description

@uniqueg

Why?

FOCA accepts any signed JWT from a trusted issuer as an access token, including ID tokens: it doesn't check the JWT typ header. RFC 9068 (JWT profile for OAuth 2.0 access tokens) has resource servers require typ: at+jwt (or application/at+jwt) precisely so that other JWTs, such as ID tokens, can't be used as access tokens. LS Login issues RFC 9068 access tokens (typ: at+jwt).

How?

  1. Add an option to security.auth (e.g. token_types: ["at+jwt", "application/at+jwt"]) listing the accepted typ header values; tokens with another or no typ are rejected with 401.
  2. Decide the default: on for new configurations, with a clear error and a way to turn it off for identity providers that don't set typ. Mention it in the release notes if it changes behaviour.
  3. Document it next to the other security.auth options.

Acceptance criteria

  • With the option set, JWTs without an accepted typ (e.g. ID tokens) are rejected with 401; tests cover both cases.
  • Documented, including how to disable it.

Context: ELIXIR On-Cloud auth policy (Krini → proTES/Conquest → TES), which validates LS Login access tokens at every service.

Activity

  1. added
    priority: medium
    status: triage
    type: auth
    type: security
    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 #361.

  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: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions