microsoft / vscode-azure-account

Common Azure Login extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account
Other
138 stars 131 forks source link

Documentation on Proxy is not a solution #906

Closed meiswjn closed 2 months ago

meiswjn commented 1 year ago

Adding login.microsoftonline.com to your NO_PROXY environment variable will let requests to login.microsoftonline.com bypass the proxy. (original suggestion)

From https://github.com/microsoft/vscode-azure-account/wiki/Troubleshooting#unable-to-sign-in-while-using-a-proxy

This is actually not really a solution. Especially in companies, it is not optional to use a proxy. In my case, it is not even technically possible to simply bypass the proxy.

This library should be compatible with proxies. It appears as if this library does not follow redirects (302), which might be the actual issue. Proxies are security tools that should not be bypassed and an official documentation should not advise users to do so.

As a workaround, we used "MSAL" instead of ADAL (default)

alexweininger commented 10 months ago

Hi @meiswjn, we've updated the Azure Resources extension so that the Azure Account extension is no longer used for authentication. It now uses VS Code's built-in Microsoft authentication extension which handles proxies a lot better than what the Azure Account extension could do. Many other users have stated it has fixed any proxy issues they had when using the Azure Account extension.

Learn more about the new version of Azure Resources

AzCode-Bot commented 2 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!