Re: Setting HttpWebRequest Credentials to be current user

From: Jamie (spammerssuck_at_nospam.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 15:50:43 -0800

anybody? :(

"Jamie" <spammerssuck@nospam.com> wrote in message
news:uvjPWCM$DHA.2660@TK2MSFTNGP10.phx.gbl...
>
> Thanks. I tried that and thought it was working.. but it only seems to
work
> when i'm on the same system as the webserver. When i go to another system
> and browse to the web page i get a (401) unauthorized error message.
>
> It's currently setup with
>
> <identity impersonate="true" /> in web.config
>
> IIS - Windows Authentication
>
> myHttpWebRequest.Credentials = CredentialCache.DefaultCredentials
>
>
>
> "richlm" <rich_lm@h0tmai1.com> wrote in message
> news:%23JKkLzJ$DHA.2476@TK2MSFTNGP12.phx.gbl...
> > e.g. myHttpWebRequest.Credentials = CredentialCache.DefaultCredentials;
> >
> > Look up System.Net on MSDN library for more info.
> >
> > Richard.
> >
> > "Jamie" <spammerssuck@nospam.com> wrote in message
> > news:ONzlvoJ$DHA.4012@tk2msftngp13.phx.gbl...
> > >
> > > I'm trying to create a HttpWebRequest object that uses the current
> logged
> > in
> > > users credentials. The site is using Windows Authentication, Anonymous
> > > access is turned off.
> > >
> > > Will the HttpWebRequest object use the current users credentials if i
> use
> > > <identity impersonate="true" /> ? or do i have to set the Credentials
> > > property of the web request? If i do, how do i set it to be the
current
> > > windows user logged into the application? I don't want to create a
> > > NetworkCredential object where i would have to pass in the login and
> > > password of the user.
> > >
> > > Thanks,
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: Setting HttpWebRequest Credentials to be current user
    ... > It's currently setup with ... > IIS - Windows Authentication ... >> Richard. ...
    (microsoft.public.dotnet.framework.aspnet)
  • directory security not working?
    ... I setup an directory under IIS 5.0 with Windows Authentication (which works ... but when I go to the directory and set the directory security by ...
    (microsoft.public.inetserver.iis.security)
  • Security on inetpub/wwwroot
    ... I am new to setup of IIS and am strugling with setup of an intranet. ... Under IIS I have the default website setup with windows authentication. ...
    (microsoft.public.inetserver.iis.security)
  • Windows Authentication not working after publishing asp.net to IIS
    ... A web application has been built using asp.net and Visual Studio 2005. ... application is setup to use windows authentication to identify users. ... What needs to be done to fix this windows authentication problem with IIS? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Using IIS w/ASP .NET 2.0 Web Application Projects
    ... I believe that selecting both allows IIS to have the benefits of both. ... not set the ASP .NET setting to Windows authentication. ... Integrated Windows Authentication overrides the Anonymous authentication ... account on the server which is hosting it. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading