I am confused as to whether or not it is safe to set the Thread.CurrentPrincipal equal to the signed in user in an MVC application i.e. so that I can perform authorization checks in my service layer?
This stackoverflow post recommends doing this.... but in this post the author suggests that there are issues with setting Thread.CurrentPrincipal. What exactly are these issues?
Also would I need to set the Thread.CurrentPrincipal for every request made by a logged in user?