set httpcontext and still use anonymous auth, demo site
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > set httpcontext and still use anonymous auth, demo site




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    set httpcontext and still use anonymous auth, demo site  
Dan Brinkmann


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-07 12:22 AM

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!





[ Post a follow-up to this message ]



    Re: set httpcontext and still use anonymous auth, demo site  
David Wang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-07 06:26 AM

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
<DanBrinkm...@discussions.microsoft.com> wrote:
> We are trying to setup a demo of our software on the internet and would li
ke
> to avoid having a user login.  Our application normally relies on Integrat
ed
> 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 .n
et
> 1.1 and IIS 6.  Thanks!







[ Post a follow-up to this message ]



    Re: set httpcontext and still use anonymous auth, demo site  
Dan Brinkmann


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-07 12:28 PM

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/li...ntext.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
> <DanBrinkm...@discussions.microsoft.com> wrote: 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:14 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register