Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

proxy-authenticate with nginx as proxy server

$
0
0
Hello. I am having trouble with authentication when using nginx as a proxy server.

I am using the ngx_http_auth_pam_module for proxy authentication on the proxy server. I want this to return a 407 error code and the Proxy-Authenticate header to the client on connect. I patched the ngx_http_auth_pam_module to return a 407 error code instead of a 401.

The client is getting a 407 error code back, but I am not seeing any authentication box pop up on both firefox and chrome. On chrome, I am getting a ERR_UNEXPECTED_PROXY_AUTH error when trying to connect to the proxy server.

I did notice that the 407 error was commented out in nginx source code, but I don't know why. Does anyone have any experience with authentication using Proxy-Authenticate?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>