views:

116

answers:

1

I am facing a problem where I have to integrate with a custom HttpModule where the principal and identity are set on the current thread so that HttpContext.Current.User contains these. However I get the feeling that the eventhandler they used (PostAcquireRequestState) is way too late.

Which is the best event to handle before the initialization of the providers happen in the HttpModule? All I want is my custom provider to work with the correct principal and identity.

A: 

This is probably best done in the PostAuthenticateRequest event. ASP.NET assumes that after this event the security information is stable.

XIII
Thanks, I'll give this a go.
Nyla Pareska

related questions