Web浏览器身份验证问题 [英] Webbrowser authentication problem

查看:166
本文介绍了Web浏览器身份验证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想导航到受集成Windows身份验证"保护的站点.
问题是每次我打开url时都会弹出凭据凭证.
有没有一种自动登录的方法?

我使用WPF WebBrowserControl进行导航,但我不知道如何解决此问题.我尝试通过HttpWebRequest进行身份验证.但是我不知道如何使该会话在我的WebBrowser导航中保持活动状态.

如果有人可以帮助我,那就太好了

致以最诚挚的问候
Doriath21

I want to navigate to a site protected by Integrated Windows Authentication.
The problem is that everytime i open the url the popup for credentials occurs.
Is there a way to login automatically?

I use the WPF WebBrowserControl for navigating and i dont know how to solve this problem.I tried to authenticate with HttpWebRequest.But i dont know how to keep this session alive for my WebBrowser-navigation.

It would be nice if anybody could help me

With best regards
Doriath21

推荐答案

看看这篇文章:
禁止托管WebBrowser控制对话框 [
Take a look at this article:
Suppressing Hosted WebBrowser Control Dialogs[^]
I''ve used parts of it with great success, including automating the handling of authentication dialogs.


这篇关于Web浏览器身份验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆