-
Notifications
You must be signed in to change notification settings - Fork 1
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 auth middleware/tripperware #32
Conversation
} | ||
|
||
func DefaultErrorHandler(err error, writer http.ResponseWriter, _ *http.Request) bool { | ||
http.Error(writer, err.Error(), http.StatusUnauthorized) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication
An HTTP response having a 401
statusCode should also return a WWW-Authenticate
HTTP header containing the available authorization methods for the requested resource 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We ignore the type of authentication method was try so we cannot return the appropriate WWW-Authenticate
value
It's currently a developer side override
Code Climate has analyzed commit 8c6a887 and detected 0 issues on this pull request. View more on Code Climate. |
No description provided.