8000 Support HTTP 407 Proxy Authentication Required and the response header · Issue #909 · nginx/nginx · GitHub
[go: up one dir, main page]

Skip to content

Support HTTP 407 Proxy Authentication Required and the response header #909

@dj-bauer

Description

@dj-bauer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0