Esempio n. 1
0
 private void Application_OnPostAuthenticateRequest(object sender, EventArgs e)
 {
     IPrincipal currentPrincipal = HttpContext.Current.User;
     if (currentPrincipal.Identity.IsAuthenticated)
     {
         FormsIdentity formsIdentity = (FormsIdentity)currentPrincipal.Identity;
         DMSIdentity identity = new DMSIdentity(formsIdentity.Ticket);
         DMSPrincipal principal = new DMSPrincipal(identity);
         HttpContext.Current.User = principal;
         Thread.CurrentPrincipal = principal;
     }
 }
Esempio n. 2
0
        private void Application_OnPostAuthenticateRequest(object sender, EventArgs e)
        {
            IPrincipal currentPrincipal = HttpContext.Current.User;

            if (currentPrincipal.Identity.IsAuthenticated)
            {
                FormsIdentity formsIdentity = (FormsIdentity)currentPrincipal.Identity;
                DMSIdentity   identity      = new DMSIdentity(formsIdentity.Ticket);
                DMSPrincipal  principal     = new DMSPrincipal(identity);
                HttpContext.Current.User = principal;
                Thread.CurrentPrincipal  = principal;
            }
        }
Esempio n. 3
0
 public DMSPrincipal(DMSIdentity identity)
     : base(identity, null)
 {
 }
Esempio n. 4
0
 public DMSPrincipal(DMSIdentity identity)
     : base(identity, null)
 {
 }