Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WWW-Authenticate multiple auth-schemes? #12

Open
rchincha opened this issue Jan 17, 2024 · 1 comment
Open

WWW-Authenticate multiple auth-schemes? #12

rchincha opened this issue Jan 17, 2024 · 1 comment

Comments

@rchincha
Copy link
Collaborator

Currently, most registries return a single WWW-Authenticate header with a 401 during the initial authentication ping. However as per spec, multiple headers are allowed in the response. So in theory a client can pick and choose depending on how it is deployed.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate

@rchincha
Copy link
Collaborator Author

client(HEAD/GET) -> registry(/v2)
registry -> client

  • WWW-Authenticate: Bearer
  • WWW-Authenticate: Basic

So then,

clientA (Authorization: Basic) -> registry
clientB(Authorization: Bearer) -> registry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant