Jonathon Kresner
Jonathon Kresner

Reputation: 2843

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

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

Upvotes: 0

Views: 593

Answers (1)

Eugenio Pace
Eugenio Pace

Reputation: 14212

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

Upvotes: 1

Related Questions