I found a great answer on SO describing how to set up custom user roles, and I\'ve done the same in my project. So in my Login service I have:
public Action
I would change principal assign at first:
Thread.CurrentPrincipal = userPrincipal; if (HttpContext.Current != null) { HttpContext.Current.User = userPrincipal; }
as ASP.NET documentation stands.