The user running a .Net application is identified by the Thread.CurrentPrincipal property of the running thread. You can set the CurrentPrincipal at application startup as follows.
Then later you can make authorization decisions based on the current user.
Comments