Skip to content

refactor: read the token challenge from headers #370

Closed

Description

@uniqueg

Problem

_is_invalid_token() in cloud_registry/ga4gh/registry/permissions.py reads the RFC 6750 challenge from the www_authenticate attribute of FOCA's 401 exceptions, to tell invalid tokens of public reads from other rejections. elixir-cloud-aai/foca#710 moves the challenge to FOCA's generic headers; with the attribute gone, invalid tokens of public reads would no longer be rejected.

Proposal

Read the challenge from the headers the exception produces (get_headers()), which works with FOCA 0.21 and after foca#710.

Activity

  1. added this to the v1.0.0-rc2 milestone on Nov 5, 2026
  2. added
    priority: low
    status: in progress
    type: auth
    workload: hours
    on Nov 5, 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: lowstatus: in progresstype: authworkload: hours

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions