We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
realm
https://datatracker.ietf.org/doc/html/rfc2617#section-1.2:
realm = "realm" "=" realm-value realm-value = quoted-string
https://datatracker.ietf.org/doc/html/rfc7235#section-2.2:
For historical reasons, a sender MUST only generate the quoted-string syntax.
However, Couper doesn't send the realm in quotes:
basic_auth "ba" { password = "asdf" realm = "my realm" }
$ curl -si localhost:8080/ HTTP/1.1 401 Unauthorized ... Www-Authenticate: Basic realm=my realm
config/ac_basic_auth.go:
func (b *BasicAuth) DefaultErrorHandler() *ErrorHandler { wwwAuthenticateValue := "Basic" if b.Realm != "" { wwwAuthenticateValue += " realm=" + b.Realm }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
https://datatracker.ietf.org/doc/html/rfc2617#section-1.2:
https://datatracker.ietf.org/doc/html/rfc7235#section-2.2:
However, Couper doesn't send the realm in quotes:
config/ac_basic_auth.go:
The text was updated successfully, but these errors were encountered: