Exemplo n.º 1
0
        public static void Logout()
        {
            Csla.Security.CslaIdentity identity  = BusinessIdentity.UnauthenticatedIdentity();
            BusinessPrincipal          principal = new BusinessPrincipal(identity);

            Csla.ApplicationContext.User = principal;
        }
Exemplo n.º 2
0
 public static void Login(string username, string password, string roles, EventHandler <EventArgs> completed)
 {
     BusinessIdentity.GetIdentity(username, password, roles, (o, e) =>
     {
         if (e.Object == null)
         {
             SetPrincipal(BusinessIdentity.UnauthenticatedIdentity());
         }
         else
         {
             SetPrincipal(e.Object);
         }
         completed(null, EventArgs.Empty);
     });
 }
Exemplo n.º 3
0
 public static void Login(string username, string password, string roles)
 {
     BusinessIdentity.GetIdentity(username, password, roles);
 }