envoy icon indicating copy to clipboard operation
envoy copied to clipboard

Basic Auth Filter should include `WWW-Authenticate` header in its 401 response

Open zhaohuabing opened this issue 1 year ago • 2 comments

A server using HTTP authentication will respond with a 401 Unauthorized response to a request for a protected resource. This response must include at least one WWW-Authenticate header and at least one challenge, to indicate what authentication schemes can be used to access the resource (and any additional data that each particular scheme needs).

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate

zhaohuabing avatar May 08 '24 02:05 zhaohuabing

cc @wbpcode

phlax avatar May 09 '24 17:05 phlax

SGTM.

wbpcode avatar May 10 '24 01:05 wbpcode