-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Token authentication #143
Comments
Hello, Thank you for your feature request :) I'm supporting only basic auth because it was the easiest way. |
Will be release in 2.0.0 🚀 |
Hello, Can you please help me to solve this issue ? Thank you very much. |
I am one of the guys waiting for token auth released for UI too. still pending. |
Is your feature request related to a problem? Please describe.
In Docker registry V2, a preferred way to authenticate is using a Central Auth architecture. This is described here. An authorization protocol is actually simple and straight forward:
401
response code, look forWWW-Authenticate
header, extractingrealm
andscope
parameters.GET
request:3.1. Use address given in
realm
,3.2. Send
scope
along with parameters,3.3. Use Basic Authentication to pass username and password
token
from the responseAuthentication: Bearer <...>
header.This is a very general and powerful way for doing authentication. It strongly separates registry app from the auth part. Client's responsibility is only to follow protocol and supply
username
andpassword
in 3.3. step.Would You mind to implement this kind of protocol in Your UI project?
Describe the solution you'd like
Actually, the simplest algorithm I can imagine will look like this:
Authentication: Bearer <...>
header in future requests.Describe alternatives you've considered
A more general way involves playing with refresh tokens, which of course is also possible.
The text was updated successfully, but these errors were encountered: