-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Description
Describe the feature you'd like to add to nginx
I'm specifically talking about the ngx_http_basic_auth module.
We already support the basic auth using the Authorization header.
I would like for the basic_auth module to configure the header that 401 requires. That would be a simple hacky solution to accept the Proxy-Authentication header.
The proper solution in my opinion would be the http_basic plugin requiring a different Header and returning slightly different codes.
Describe the problem this feature solves
I stumbled about an application, that already uses the header for Mobile-App -> backend authentication.
That application could not be reverse-proxied with the current setup, and the Proxy-Authentication would be fitting.
The quick "hacky" solution (customizable "Authorization" header option) would allow for a very flexible setup too.
Additional context
Reference for Proxy-Authentication was https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/407