I have an mvc app where we follow custom authentication through an external package. After authentication, the username & otherdetails are sent through an object which can be accessed by 'Thread.CurrentPrincipal' property in the controller. I use the username from this object to log into my database for logging. I have an mvc app where we follow custom authen