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

Token-based authentication not work if service have space in name. #19

Open
BigOHenry opened this issue Mar 19, 2019 · 1 comment
Open

Comments

@BigOHenry
Copy link

Token-based authentication not work if service have space in name. Example: service="Service name with spaces"

version: master

docker registry config:

auth:
  token:
  realm: ""
  service: "Docker registry"
  issuer: ""
  rootcertbundle: ""

Thank you

@mortensteenrasmussen
Copy link
Owner

Thanks for the report. I don't have the time to fix this right now, but it should be the way I parse the auth headers.

Note to self:
Check line 68 - if the header has more spaces (due to service name containing space), the auth_header var should have [1] till last [#]:

			auth_header = r.headers["Www-Authenticate"].split(" ")[1]

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

No branches or pull requests

2 participants