RE: How to tell WebBrowser control what credentials to use?



Hi Adar,

As far as I know, there're two kinds of authentication modes for web site.
One is form authentication which requires the user to input his username
and password in the web page. And the other is integration authentication
which uses the current windows user's username and password to log on the
web site.

Could you tell me what kind of the authentication mode of the web site
you'll navigate is?

As for the first authentication mode, we could pass the username and
password from windows application to the web page using the method I
mentioned in my previous reply. However, this probably requires script in
the web page to accept the username and password.

As for the second authentication mode, IE always uses the current user's
username and password to log on the web site and we could't change this
behavior. The WebBrowser control is a shell of IE, which means the control
does what IE does when accessing web sites.

If you do want to navigate the web site by the specified username and
password, you could run the windows application as the specified user. To
do this, right-click the windows application and choose Run as. Then input
the specified username and password in the Run As dialog.

Hope this helps.
If you have any concerns, please feel free to let me know.



Sincerely,
Linda Liu
Microsoft Online Community Support

.



Relevant Pages

  • Re: user.identity.name returns old AD user name
    ... Joe Kaplan-MS MVP Directory Services Programming ... Rebooting did fix the issue on a test server. ... We have some kiosks that access a different web site on the same ... LSA on the web server has cached the username for this particular user's ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: user.identity.name returns old AD user name
    ... "Joe Kaplan" wrote: ... Rebooting did fix the issue on a test server. ... We have some kiosks that access a different web site on the same ... LSA on the web server has cached the username for this particular user's ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: user.identity.name returns old AD user name
    ... Rebooting did fix the issue on a test server. ... We have some kiosks that access a different web site on the same ... server which sometimes have problems when we reboot this production server. ... LSA on the web server has cached the username for this particular user's SID ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Password protection
    ... Create a new folder in your Web site. ... To open the subweb, double-click its icon. ... Microsoft FrontPage MVP ... > o I will set up username and password in advance. ...
    (microsoft.public.frontpage.client)
  • Browser Authentication
    ... level of the default web site I can get them in. ... then the USERNAME, PASSWORD, and DOMAIN dialog box pops ... security and the user types in his/her credentials it ... Integrated Windows Authentication logon screen. ...
    (microsoft.public.inetserver.iis.security)