Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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.
 
Share this answer
 
Comments
Doriath21 11-Jul-11 7:19am    
I have a wpf-webbrowser and no winforms
DLChambers 11-Jul-11 7:44am    
Yeah, I did see that in your original post, but thought I'd fwd the link just in case there was something in it that might lead you to a solution.
Doriath21 11-Jul-11 8:26am    
The mainproblem is, that i need to store logininformations for my WebBrowserControl. I changed the authentication-mode from the host to basic so that i can add a athentication-header on the navigate-event. This works fine until i click somewhere in the browser so that a new request is startet. Noe the login-popup is there again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900