Project

Profile

Help

Issue #8046

Add error details for the 401 auth header

Added by ipanova@redhat.com about 2 months ago. Updated 11 days ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
GalaxyNG
Sprint:
Sprint 91
Quarter:

Description

Access-Control-Expose-Headers: Correlation-ID
Allow: GET, HEAD, OPTIONS
Connection: close
Content-Length: 150
Content-Type: application/json
Correlation-ID: de6ebc50d5464587afdb5a757234b0e8
Date: Thu, 07 Jan 2021 13:09:36 GMT
Docker-Distribution-Api-Version: registry/2.0
Server: gunicorn/20.0.4
Vary: Accept
WWW-Authenticate: Bearer realm="http://pulp3-source-fedora32.fluffy.example.com/token",service="localhost:24817",scope="repository:test/this:pull"
X-Frame-Options: SAMEORIGIN

{
    "errors": [
        {
            "code": "UNAUTHORIZED",
            "detail": {},
            "message": "Access to the requested resource is not authorized. The provided Bearer token is invalid."
        }
    ]
}


vs
Www-Authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io",scope="registry:catalog:*",error="insufficient_scope"

Www-Authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io",scope="registry:catalog:*",error="invalid_token"

Associated revisions

Revision 8274e1ed View on GitHub
Added by Lubos Mjachky 11 days ago

Return error code in the WWW-Authenticate header

closes #8046

History

#1 Updated by ipanova@redhat.com about 2 months ago

  • Sprint/Milestone set to 2.4.0

#2 Updated by lmjachky 21 days ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to lmjachky

#3 Updated by pulpbot 21 days ago

  • Status changed from ASSIGNED to POST

#4 Updated by ipanova@redhat.com 18 days ago

  • Triaged changed from No to Yes

#5 Updated by ipanova@redhat.com 17 days ago

  • Tags GalaxyNG added

#6 Updated by ipanova@redhat.com 16 days ago

  • Sprint set to Sprint 90

#7 Updated by rchan 14 days ago

  • Sprint changed from Sprint 90 to Sprint 91

#8 Updated by Anonymous 11 days ago

  • Status changed from POST to MODIFIED

Please register to edit this issue

Also available in: Atom PDF