PostAuthenticateRequest called on no user

D

David Thielen

Hi;

I have a situation where I go to access my app running on IIS on Win2003. In
Global.asax I have Application_PostAuthenticateRequest and that is called
when HttpContext.Current.User is null.

Subsequent to that I get prompted to enter my uname/password by IE so it
does make sense that there is no CurrentUser yet. My question is, how can
Application_PostAuthenticateRequest be called if there is no authenticated
user yet?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
D

Dominick Baier

we are talking about a pipeline. This event is called on every request.

If you code should only run when there is an authenticated user - do

if (Request.IsAuthenticated)
{}
 
D

Dominick Baier

nope.

there is a bunch of stuff going on after authentication - e.g. role management,
caching etc...

all events are called every time (besides when you are not authorized - then
the request is ended in AuthorizeRequest)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top