Windows – Forward NTLM authentication to corporate proxy from local proxy server

PROXYwindows

I have a Python script which is supposed to access various web API's from our server out through to the internet. The issue is that Python support from what I've seen is quite poor when it comes to supporting NTLM authentication. This causes our corporate proxy server to always return HTTP code 407. My initial idea was to set up a local proxy server using IIS and the Application Request Routing module, which would forward all requests to our corporate proxy while handling the NTLM authentication. Issue with that approach is that it doesn't appear to be forwarding my NTLM credentials, which the current user is running the Python script from.

Will this approach work? If so, how can I implement it?

Best Answer

Have you taken a look at these?

NTLM Authorization Proxy Server

Python NTLM