I'm in the process of writing an HTTPModule in C#.NET that manages unhandled errors by our applications on a particular server. Some users are in our domain, some are anonymous. How can I determine in my HTTPModule whether the user is anonymous or from our domain?
Asked
Active
Viewed 159 times
1 Answers
0
First in IIS you have to activate Windows authentication.
Then you have access to the current user with HttpContext.Current.User.Identity

Mart
- 5,608
- 3
- 32
- 45