Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify a user id and password for Visual Studio Code with an authenticating proxy?

How to specify a user id and password for Visual Studio Code with an authenticating proxy?

I've seen the Proxy Server Support on the main VS Code site, but this only mentions two settings ...

"http.proxy": "http://10.203.0.1:5187/" "http.proxyStrictSSL": false 

I've set these, but still no luck, e.g. I can't install extensions ... can't even get a list of them

I suspect it's our proxy, as it needs a user id and password :-(

So how can you set these values?

like image 583
SteveC Avatar asked Jun 09 '16 15:06

SteveC


People also ask

What is proxy authentication password?

Proxy Password (-proxyPassword)Password used to authenticate the AppServer client to the HTTP-based Proxy server.

How do I fix VS Code proxy error?

Here is a solution in Windows 7. Change the system proxy to your proxy, like localhost:3128 , in Internet Options => Connections => LAN Settings. After a version (1.35. 0 maybe), the proxy settings in the Settings of vscode seems not working.

Where is proxy setting in Visual Studio?

Tools->Options->Web Browser->Internet Explorer Options->Connections-> LAN settings-> Proxy server -> Advance add your proxy IP and port here.


1 Answers

Set credentials inside the proxy url:

http://username:[email protected]:5187/ 

WARNING: Setting your password in plaintext in a file can easily lead to your account being compromised. Further it might violate your companies data security guidelines. https://cwe.mitre.org/data/definitions/256.html

like image 105
Oscar Avatar answered Sep 18 '22 17:09

Oscar