Skip to content
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

Save proxy authentication #44041

Closed
willemavjc opened this issue Feb 20, 2018 · 12 comments
Closed

Save proxy authentication #44041

willemavjc opened this issue Feb 20, 2018 · 12 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality proxy Issues regarding network proxies
Milestone

Comments

@willemavjc
Copy link

Issue Type

Feature Request

Description

Each time I open VS Code, it displays a form asking for my proxy settings. Isn't there a way I could check some box and it would repropose the form filled, at least?
Thanks!

image

VS Code Info

VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:34:36.336Z)
OS version: Windows_NT x64 6.1.7601

@bpasero bpasero assigned joaomoreno and unassigned bpasero Feb 20, 2018
@joaomoreno joaomoreno changed the title Register proxy settings Save proxy authentication Feb 20, 2018
@joaomoreno joaomoreno added this to the Backlog milestone Feb 20, 2018
@joaomoreno joaomoreno added feature-request Request for new features or functionality proxy Issues regarding network proxies labels Feb 20, 2018
@joaomoreno joaomoreno removed their assignment Feb 20, 2018
@willemavjc
Copy link
Author

Will it come one day?

@solarjoe
Copy link

Same issue for me, the pop-up appers twice (once for the Extensions I guess).

Windows 10, 64-bit
VS Code 1.33.1 (user setup)

I tried lots of things in the GUI settings and settings.json for User Settings and Workspace Settings, also both as mentioned in #32566 (comment)

    "http.proxy": "http://user:password@proxy-ip:port" (with password, without, username only, ...)
    "http.proxyStrictSSL": false or true
    "http.proxySupport": "on (override, off, ...)

The environment variables are set (lowercase) and work fine for other programs

https_proxy=http://user:password@proxy-ip:port
http_proxy=http://user:password@proxy-ip:port
  • What is the expected behaviour? Is VS Code always supposed to ask for the password even if it is stored in the URL in the settings or the environment variables?
  • Could there be a "store password" in this pop-up which puts it to the settings.json if authentication works?

@solarjoe
Copy link

I found this issue #38888

They mention that supplying the proxy parameters on the command line works, even if setting it in VS Code doesn't. And this works for me. Still not beautiful, as the password is clear text, but for the other options (environment variables, settings.json) this would also be the case.

So I added this to my desktop shortcut and the two popups are gone:

"C:\Path\To\Code.exe" --proxy-server=http://user:[email protected]:8080

@gpion
Copy link

gpion commented Sep 11, 2019

that supplying the proxy parameters on the command line works, even if setting it in VS Code doesn't.

Then you'll have to edit all reference to code.exe in the HKCU branch of the registry too ("shell\open\command" subkeys for several object types) to have it work when no instance of VsCode is already running.

@solarjoe
Copy link

solarjoe commented Sep 11, 2019

True, and there was another response in #32566 (comment) that it doesn't work.
Just the popup is gone.

Is there a way to see which proxy settings are being used when VSC is connecting somewhere? I checked the developer tools but they only state the errors.

@solarjoe
Copy link

I tried the workaround using node here and it works fine: #32566 (comment)

@willemavjc
Copy link
Author

willemavjc commented Oct 11, 2019

@joaomoreno Is there any plan to do something about it? Thanks.

@joaomoreno
Copy link
Member

No plan so far.

@gpion
Copy link

gpion commented Oct 11, 2019

No plan so far.

Sad. Time to expect a closed issue with a "won't fix" status then :-/

@willemavjc
Copy link
Author

No plan so far.

Can't believe no one @microsoft care about such an issue which is in 2020 rather a core design issue than anything else... VSCode was meant for developers and developers mainly work in organisations with most of the big ones using proxies since like 20 years, at least.

@joaomoreno
Copy link
Member

/duplicate #32566

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 28, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 28, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Oct 28, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality proxy Issues regarding network proxies
Projects
None yet
Development

No branches or pull requests

5 participants