예제 #1
0
        public static void Logout()
        {
            Csla.Security.CslaIdentity identity = SLIdentity.UnauthenticatedIdentity();
            SLPrincipal principal = new SLPrincipal(identity);

            Csla.ApplicationContext.User = principal;
        }
예제 #2
0
        public static void Logout()
        {
            IIdentity   identity  = new SLWindowsIdentity();
            SLPrincipal principal = new SLPrincipal(identity);

            Csla.ApplicationContext.User = principal;
        }
예제 #3
0
        private static bool SetPrincipal(IIdentity identity)
        {
            SLPrincipal principal = new SLPrincipal(identity);

            Csla.ApplicationContext.User = principal;
            return(identity.IsAuthenticated);
        }
예제 #4
0
 private static bool SetPrincipal(Csla.Security.CslaIdentity identity)
 {
     if (identity.IsAuthenticated)
       {
     SLPrincipal principal = new SLPrincipal(identity);
     Csla.ApplicationContext.User = principal;
       }
       else
       {
     identity = SLIdentity.UnauthenticatedIdentity();
     SLPrincipal principal = new SLPrincipal(identity);
     Csla.ApplicationContext.User = principal;
       }
       return identity.IsAuthenticated;
 }
예제 #5
0
 private static bool SetPrincipal(Csla.Security.CslaIdentity identity)
 {
     if (identity.IsAuthenticated)
     {
         SLPrincipal principal = new SLPrincipal(identity);
         Csla.ApplicationContext.User = principal;
     }
     else
     {
         identity = SLIdentity.UnauthenticatedIdentity();
         SLPrincipal principal = new SLPrincipal(identity);
         Csla.ApplicationContext.User = principal;
     }
     return(identity.IsAuthenticated);
 }
예제 #6
0
 private static bool SetPrincipal(IIdentity identity)
 {
     SLPrincipal principal = new SLPrincipal(identity);
       Csla.ApplicationContext.User = principal;
       return identity.IsAuthenticated;
 }
예제 #7
0
 public static void Logout()
 {
     IIdentity identity = new SLWindowsIdentity();
       SLPrincipal principal = new SLPrincipal(identity);
       Csla.ApplicationContext.User = principal;
 }
예제 #8
0
 public static void Logout()
 {
     Csla.Security.CslaIdentity identity = SLIdentity.UnauthenticatedIdentity();
       SLPrincipal principal = new SLPrincipal(identity);
       Csla.ApplicationContext.User = principal;
 }