Re: Custom IPrincipal and declarative security checking

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 03/16/05


To: microsoft.public.dotnet.security,microsoft.public.dotnet.framework.aspnet.security
Date: Wed, 16 Mar 2005 00:08:55 -0800

download http://www.pluralsight.com/toolcontent/show_pipeline.zip

 put the ashx file in a web app and run it through your browser - you'll see the DefaultAuthentication event (this one is hardwired and you will not find a registration in the HttpModules section in machine.config).

 fire up Reflector and look for System.Web.Security.DefaultAuthenticationModule - in the OnEnter method you'll see a call to "SetPrincipalOnThread" - follow this link - and there you are.

 was that the "documentation" you are looking for ? :)

 

 ---
 Dominick Baier - DevelopMentor
 http://www.leastprivilege.com

   nntp://news.microsoft.com/microsoft.public.dotnet.security/>

 Thanks Nicole and Dominick,
 
 @Nicole, you guessed right, my implementation of IsAuthenticated was buggy,
 fixed that and everything works as expected...
 
 @Dominick, do you happen to have a link to some documentation on that
 undocumented behavior?
 
 rgds,
 Baileys
 
 [microsoft.public.dotnet.security]



Relevant Pages