set httpcontext and still use anonymous auth, demo site
am 29.01.2007 21:53:01 von DanBrinkmann
We are trying to setup a demo of our software on the internet and would like
to avoid having a user login. Our application normally relies on Integrated
Auth to determine the current user as much of the interface is determined
based on who the user is and what rights they have. Our demo site always
uses a "demo" account, and we would like to avoid having an authentication
prompt, just automatically login using this demo account. We are using .net
1.1 and IIS 6. Thanks!
Re: set httpcontext and still use anonymous auth, demo site
am 30.01.2007 05:13:57 von David Wang
If you want all web users to automatically login using an account,
then you should configure IIS to use Anonymous authentication because
that's exactly what it does.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Jan 29, 12:53 pm, Dan Brinkmann
wrote:
> We are trying to setup a demo of our software on the internet and would like
> to avoid having a user login. Our application normally relies on Integrated
> Auth to determine the current user as much of the interface is determined
> based on who the user is and what rights they have. Our demo site always
> uses a "demo" account, and we would like to avoid having an authentication
> prompt, just automatically login using this demo account. We are using .net
> 1.1 and IIS 6. Thanks!
Re: set httpcontext and still use anonymous auth, demo site
am 30.01.2007 13:42:00 von DanBrinkmann
However when i use anonymous the httpcontext does not get set. It is the
httpcontext we use to get the security context of the current user accessing
the page, we would like to hard code that for our demo and not require a
login:
http://msdn2.microsoft.com/en-us/library/system.web.httpcont ext.user.aspx
For example, if we were running a sharepoint site and wanted to autologin an
internet user to demo something that you have to be authenticated to
sharepoint as a particular user to do...
In this case the custom app is normally placed on an intranet and we use
integrated authentication, however in order to demo from the internet we
don't want to require a login prompt but still need there to be an
httpcontext in order for some of the functionality to work. Anonymous auth
leaves no httpcontext.
thanks!
"David Wang" wrote:
> If you want all web users to automatically login using an account,
> then you should configure IIS to use Anonymous authentication because
> that's exactly what it does.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
> On Jan 29, 12:53 pm, Dan Brinkmann
> wrote:
> > We are trying to setup a demo of our software on the internet and would like
> > to avoid having a user login. Our application normally relies on Integrated
> > Auth to determine the current user as much of the interface is determined
> > based on who the user is and what rights they have. Our demo site always
> > uses a "demo" account, and we would like to avoid having an authentication
> > prompt, just automatically login using this demo account. We are using .net
> > 1.1 and IIS 6. Thanks!
>
>
>