titanium-web-proxy
titanium-web-proxy copied to clipboard
Basic authentication for upstream proxy
In my environment, I have an upstream proxy that requires basic authentication and I need to change the password on an irregular basis. So, I have not specified a username and password for the upstream proxy (proxyServer.UpStreamHttpProxy).
As a result, the upstream proxy returns "407 Proxy Authentication Required" but throws an exception "Upstream proxy failed to create a secure tunnel" in the TcpConnectionFactory class.
Is there any way to display the browser's authentication dialog and return the user's input to the upstream proxy without throwing this exception?
Thank you.
Again, I tried to view the HTTPS site with the latest TWP.
If the web server returns 401 (Unauthorized), the authentication dialog pops up.
On the other hand, if the upstream proxy returns 407 (Proxy Authentication Required), the authentication dialog will not pop up and an error message will be displayed in the browser.
Both require the same authentication, but I don't know why the authentication dialog doesn't pop up on the 407.