问题标签 [proxy-authentication]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
windows - 使用带有 AD 身份验证的 IE 代理发出 HTTP 请求
在企业桌面场景中,用户登录到 Active Directory 域,我希望我的应用程序使用与 Internet Explorer 相同的代理发出 HTTP 请求。问题是代理需要使用当前登录用户的凭据进行 NTLM 身份验证,这是我不知道我的应用程序如何获取的。
除了向用户询问他/她的密码(为此我找到了很多解决方案),有没有办法正确地做到这一点,比如使用一些本机 API?在这种情况下,我对编程语言并不挑剔,如果它适用于这种情况,我接受它,尽管我更喜欢 C/C++。
proxy - 是否可以在 windows 中配置代理身份验证用户名和密码?
我有一个带有基本 SQL db 身份验证的 squid 代理服务器。在客户端机器上设置它时,会提示用户一个对话框,询问用户名/密码。
输入它们并选中保存框后,IE中不再出现提示,但chrome每次启动时都会询问。
我的问题 - 是否可以在注册表或其他地方预先配置用户名/密码?我试过了
和它的变化没有成功。当输入该字符串时,浏览器会完全忽略它并且不使用代理继续。
我研究了在 squid 上设置 ntlm,但似乎如果客户端位于不同的域中,仍然会提示用户。
c# - Why do I get (407) Proxy Authentication Required in a WinForms app and not a Console app?
I've got a problem getting my software to communicate through a proxy server at a client's site. It just gets (407) Proxy Authentication Required errors. It's a .NET Framework 3.5 C# WinForms application which uses old-style asmx web references to communicate (not WCF).
To diagnose the problem, I created a simple C# console app:
This gives the error (407) Proxy Authentication Required. So I added this to the app config:
And it works. Great! However, in a similarly simple test WinForms application where I've put the same code behind a button click, I still get the 407 error with or without the extra config.
What's the difference between a Console application and a WinForms application in which the latter doesn't seem to send the default credentials? What else can I do to diagnose this?
Other things I've tried:
Setting the credentials in code using CredentialCache.DefaultCredentials and CredentialCache.DefaultNetworkCredentials.
Creating a new WebProxy and setting the default credentials in code.
Changing the config to point to a non-existent web proxy. This gives a different error, which shows that the WinForms app is at least reading the config.
I haven't tried creating a new NetworkCredential with username and password in code, partly because this wouldn't really be a viable solution for the production app, but mainly because I don't know the password! I'm having to do all my diagnosis over LogMeIn because the client site is in a different country and I'm dealing with a less-than-helpful IT department.
Thanks for any help.
java - Jersey 客户端是否支持 NTLM 代理
我正在尝试使用 NTLM 代理拨打球衣客户电话?这是可能的,因为我无法获得任何明确的信息。以前有人试过吗?
c# - 远程服务器返回错误:(407)需要代理身份验证
我将此代码与 .NET 3.5 一起使用并收到错误“远程服务器返回错误:(407) 需要代理身份验证。”
但是,此代码可在 .NET 4.0 中顺利运行,因为此行足以通过代理身份验证,但不适用于 .NET 3.5。
因此,我尝试了许多其他方法来解决这个问题,但它们都不起作用:
1) 将 CredentialCache.DefaultCredentials 行替换为
2) 创建新的代理对象
3)添加这一行
4) 使用 HttpWebRequest 代替 WebClient 并重复上述每个过程。这是示例代码。
我觉得我走到了死胡同,因为我必须使用 .NET 3.5。我不知道这两个 .NET 版本之间一定有区别。非常感谢您提前。
visual-studio-2012 - 如何为 Visual Studio 2012 配置代理凭据?
我在 MSDN 上搜索过,但我找不到如何在 Visual Studio 2012 配置文件中为代理配置用户名和密码。我找到了这个:
有没有办法指定用户名和密码?谢谢
android - 如何使用与 android studio 的代理连接
我正在尝试在 android studio 中运行“hello world”应用程序。我的连接是通过代理。当我尝试运行“hello world app”时,android studio 显示下一个错误:
运行 Prueba 时出错:Gradle 项目同步失败。请修复您的项目,然后重试。
如果我在“文件/设置 - > HTTP 代理”中进行配置,然后再放入我的代理配置,则错误是下一个:
错误:无法获取“ http://jcenter.bintray.com/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom ”。从服务器收到状态代码 407:需要代理身份验证(ISA 服务器需要授权才能完成请求。拒绝访问 Web 代理过滤器。)
<a href="toggle.offline.mode">Enable Gradle 'offline mode' and sync project</a>
我该如何解决这个错误?
c++ - 在 Windows 上的 C++ 中设置系统代理 && 身份验证
C++ 中有没有办法使用身份验证凭据设置 Windows 系统代理,这样它会立即影响所有正在运行的程序(浏览器等),但是:
- 不需要重新启动任何浏览器
- 不需要浏览器重新认证
我真的在寻找一个系统级的预认证代理。
感谢您的任何帮助。如果有不清楚的地方,请提出任何问题。
使用:c++11,Windows 7
编辑 1:我需要以编程方式设置它,所以请不要建议任何手动操作。
编辑 2:部分可接受的是一种如何以编程方式设置代理而不进行预身份验证但仍保持 1. 要求的方法(不需要重新启动任何浏览器)
javascript - 代理认证和节点请求
我正在尝试使用请求通过 https 向站点发送获取请求。但是,我在代理后面,需要进行身份验证才能使用。当我尝试添加身份验证时,它无法连接到该站点。
我尝试在代理 url 中添加身份验证,例如:
我也尝试将授权添加到标题中,但这也有同样的问题
似乎代理返回了身份验证响应,但是请求剂量似乎在那之后发送了任何东西,所以它实际上并没有登录。我需要添加更多配置吗?