Search code examples
wif

Does SessionAuthenticationModule set IClaimsPrincipal on Thread.Principal or HttpContext.Current.User


Wouldn't it be a mistake to set it on the thread?


Solution

  • Both HttpContext.Current.User and Thread.CurrentPrincipal are set with an IClaimsPrincipal (the same instance in fact)