Пример #1
0
        public static void Logout()
        {
            var identity  = PhuLiIdentity.UnauthenticatedIdentity();
            var principal = new PhuLiPrincipal(identity);

            ApplicationContext.User = principal;
        }
Пример #2
0
 private static bool SetPrincipal(PhuLiIdentity identity)
 {
     if (identity.IsAuthenticated)
     {
         var principal = new PhuLiPrincipal(identity);
         ApplicationContext.User = principal;
     }
     return identity.IsAuthenticated;
 }
Пример #3
0
 private static bool SetPrincipal(PhuLiIdentity identity)
 {
     if (identity.IsAuthenticated)
     {
         var principal = new PhuLiPrincipal(identity);
         ApplicationContext.User = principal;
     }
     return(identity.IsAuthenticated);
 }
Пример #4
0
 public static void Logout()
 {
     var identity = PhuLiIdentity.UnauthenticatedIdentity();
     var principal = new PhuLiPrincipal(identity);
     ApplicationContext.User = principal;
 }