9

Closed

Add extension method to make setting User's principal easier

description

Today, you will need to set both of the following for user principal if you use a custom message handler to perform authentication in the web hosted scenario.
        IPrincipal principal = new GenericPrincipal(new GenericIdentity("myuser"), new string[] { "myrole" });
        Thread.CurrentPrincipal = principal;
        HttpContext.Current.User = principal;
We should add an extension method to make it easier.
Closed Aug 8, 2012 at 9:30 PM by danroth27
We are focusing our efforts on higher priority work at this time.

comments