New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not use proxy with password #2106
Comments
@Yogu Shouldn't it be |
@nulltoken Sorry, that was a typo in the issue description. The config file is correct. |
I can see some options with some promising names in this documentation describing the options flags supported by
/cc @phkelley |
Indeed, win http absolutely supports proxies with passwords. We just need to set the options. Can't look at this today but I can dig in this weekend if nobody beats me to it.
|
Did this ever get looked at? |
The WinHTTP transport (which is the only one which supports a proxy) does look up the proxy from the config and env variables. |
Closing as it seems it was actually fixed. |
Reopening as it seems that we still don't extract the proxy username and password from the url that |
@ethomson Are you still up to take a look at this? This would be a neat addition as currently libgit2 users behind a corporate proxy are compelled to rely on local proxy (eg. cntlm, ntlmaps, ...) |
@FeodorFitsner In order to ease the implementation of this feature, we were thinking about starting with a failing test. Would you have any idea how we could set up some kind of NTLM proxy during our AppVeyor builds? Would you know any product we could download and install to this purpose? |
Look at this thread: http://help.appveyor.com/discussions/questions/787-simulate-enterprise-proxy |
@FeodorFitsner Awesome! Thanks for the tip @ethomson There's a chocolatey package for privoxy (which looks like supporting NTLM). Would that fit our need? |
Hmmm. Not sure Privoxy actually supports user authentication by itself. It supports forwarding up to a parent proxy. |
Right, this is a bullet point that it has session persistence. NTLM and It looks like privoxy does not support authentication itself:
says the manual. Which is a shame. Does the Appveyor image have a JRE installed? If so, I may be able to make On Fri, Apr 24, 2015 at 4:47 PM, nulltoken notifications@github.com wrote:
|
@ethomson http://www.appveyor.com/docs/installed-software states that the following are installed: Java SE Development Kit (JDK)
|
OK, I think I have a proxy that I can bring to the party that I've used for testing previously. |
I've also tried setting up squid with ntlm_fakeauth via
http://wiki.squid-cache.org/ConfigExamples/Authenticate/LoggingOnly but
something goes wrong and the connection is terminated (at least with curl)
|
I started looking into it, and while we can have a guess that a server will support Basic, it opens up a can of worms about whether people do want to have their password in plaintext or whether a program/user would prefer to be asked for them as needed, possibly using the same cred callbacks we already have for the endpoint. It also opens up whether we'd like to allow the user to specify the want NTLM auth or what. |
Fixed as part of #3110 we now extract the auth info from caller- or config-provided urls. |
I have a global config entry like the following:
libgit2's fetch fails with
The problem is that WINHTTP_PROXY_INFO does not support authentication for proxies (see also this question)
This is bad because official git does support authentication for proxies and thus libgit2 can not perform network operations in perfectly valid git configurations.
The text was updated successfully, but these errors were encountered: