protected void Application_AuthenticateRequest(object sender, EventArgs e) { IPrincipal principal = HttpContext.Current.User; if (principal != null && principal.Identity.IsAuthenticated && principal.Identity.AuthenticationType == "Forms") { //2. IDENTITY FormsIdentity fIndent = (FormsIdentity)principal.Identity; SocialGEOIdentity cIndent = new SocialGEOIdentity(fIndent.Ticket); IPrincipal nPrincipal = new SocialGEOPrincipal(cIndent); HttpContext.Current.User = nPrincipal; Thread.CurrentPrincipal = nPrincipal; } }
public SocialGEOPrincipal(SocialGEOIdentity cIndent) { this.Identity = cIndent; }