简体   繁体   English

在VB6中将集成的Windows身份验证凭据与WebBrowser控件一起使用

[英]Using Integrated Windows Authentication credentials with a WebBrowser control in VB6

I have a VB6 application using a WebBrowser control to access a site. 我有一个使用WebBrowser控件访问站点的VB6应用程序。 I need to push the user's Windows Authentication credentials to the control so he won't get asked to enter his user and password when he accesses a web application in an intranet. 我需要将用户的Windows身份验证凭据推送到控件,以便当他访问Intranet中的Web应用程序时,不会要求他输入用户名和密码。

I have seen solutions in .NET like this post. 我已经在.NET中看到过类似这篇文章的解决方案。

Send credentials to WebBrowser 将凭据发送到WebBrowser

Is there a way to achieve this with Visual Basic 6? 有没有一种方法可以使用Visual Basic 6来实现?

The VB6 WebBrowser control will exhibit the same behavior as IE--so if the URL is in the trusted sites or intranet zones it should automatically use your network credentials--no coding necessary. VB6 WebBrowser控件将表现出与IE相同的行为-因此,如果URL位于受信任的站点或Intranet区域中,则它应自动使用您的网络凭据-无需编码。

If you want to programmatically add your URL to a zone, use the SetZoneMapping function. 如果要以编程方式将URL添加到区域中,请使用SetZoneMapping函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM