protected void Application_PostAuthenticateRequest(Object sender, EventArgs e) { if (Request.IsAuthenticated) { var identify = new IdentityPersonalizado(HttpContext.Current.User.Identity); var principal = new PrincipalPersonalizado(identify); HttpContext.Current.User = principal; } }
public PrincipalPersonalizado(IdentityPersonalizado identity) { Identity = identity; }