how manage proxy auto authentication in independent way

190 views
Skip to first unread message

kk

unread,
Jun 10, 2013, 9:19:07 AM6/10/13
to httpf...@googlegroups.com
hi, i'm using fiddlercore 2.4.0.1.

i need to use it with a general configuration  that work both with a real system proxy (that needs the current windows credential) or with diret access to internet,
so i can deploy the same dlls without machine-specific code to make it works.

i want know if i can simply always set oS["X-AutoAuth"] = "(default)" in the onbeforerequest handler or if there're same cases where this don't work.

thanks

EricLaw

unread,
Jun 10, 2013, 12:58:41 PM6/10/13
to httpf...@googlegroups.com
Using oS["X-AutoAuth"] = "(default)" will automatically respond to any Digest/NTLM/Negotiate authentication demand (e.g. both server auth and proxy auth) with the current Windows user's logon credentials. This will obviously not work if the server requires credentials other than those (e.g. the user logs into the proxy with a different account) or if the server demands HTTP BASIC authentication.
 
Having said that, why would you want to do this at all? It would generally be better to NOT try to have FiddlerCore perform authentication and instead let the client application respond to the 401 or 407 as it would normally.

kk

unread,
Jun 11, 2013, 3:42:03 AM6/11/13
to httpf...@googlegroups.com
thanks for the suggestion but my problem is that by default ie will automatically send to the real proxy the user credentials, with fiddler active and ChainToUpstreamGateway there's the windows popup to get the credentials so i want to avoid it using universal code.

at the moment i haven't yet access to the remote machine with this problem so i don't know exactly what authentication mode is used.

EricLaw

unread,
Jun 11, 2013, 12:37:57 PM6/11/13
to httpf...@googlegroups.com
> there's the windows popup to get the credentials
 
The Windows popup typically only appears if the credentials submitted automatically are not correct.
 
In this scenario, are you sure that the request is for the proxy credentials?
Reply all
Reply to author
Forward
0 new messages