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

Add more useful error for bad credentials. #51

Merged
merged 2 commits into from
Dec 11, 2017

Conversation

csmith
Copy link
Contributor

@csmith csmith commented Dec 11, 2017

The www-authenticate: basic response currently gets caught by
the token transport, which fails to parse it and spits out
a rather oblique "malformed auth challenge header" error.

Make the token transport ignore basic auth types, and make
the error transport handle any 401 responses that reach it.

Issue #38

The www-authenticate: basic response currently gets caught by
the token transport, which fails to parse it and spits out
a rather oblique "malformed auth challenge header" error.

Make the token transport ignore basic auth types, and make
the error transport handle a 401 response.
@jessfraz
Copy link
Collaborator

go fmt is failing on this file registry/authchallenge.go can you run gofmt and save the results.

Thanks!

@csmith
Copy link
Contributor Author

csmith commented Dec 11, 2017

Oops, sorry! Done.

@jessfraz
Copy link
Collaborator

Thanks!!!

@jessfraz jessfraz merged commit 0ff4380 into genuinetools:master Dec 11, 2017
@csmith csmith deleted the basic-auth-errors branch December 11, 2017 15:54
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

Successfully merging this pull request may close these issues.

None yet

2 participants