You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: read the token challenge from headers #370
_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