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

Adding HTTP(S) over HTTP(S) proxy support to add accounts. #26137

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lewis-sanchez
Copy link
Contributor

This PR fixes #25990,

This PR adds support for the following proxy configurations by setting a proxy agent manually.
HTTP over HTTP
HTTP over HTTPS
HTTPS over HTTP
HTTPS over HTTPS

In Axios, there's a bug with the way it reads the HTTPS_PROXY and HTTP_PROXY environment variables and this in turn is preventing accounts from being added in Azure Data Studio when the user is in a proxy environment and attempting to add an account.

@Benjin
Copy link
Contributor

Benjin commented Jan 8, 2025

This'll be huge if this fixes the proxy authentication issues! Can you update the description with information about how you've validated that this fixes the proxy issues?

if (proxy) {
const agent = this.createProxyAgent(requestUrl, proxy, httpConfig["proxyStrictSSL"]);

if (proxy.includes("https")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be "starts with", or there's other stuff before the https://

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to add Account
3 participants