public SetCabertSecurityContextAttribute(CatOps.CatbertWebService service) { CatOps.SecurityContext sc = new CatOps.SecurityContext(); sc.userID = HttpContext.Current.User.Identity.Name; sc.password = "******"; System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy(); service.SecurityContextValue = sc; }
public static bool AddUserToRole(CatOps.Users user, CatOps.Roles role) { SetSecurityContext(); return catops.AssignPermissions(user.Login, AppName, role.RoleID, HASH); }
public static int InsertNewUser(CatOps.Users user) { SetSecurityContext(); return catops.InsertNewUser(user, HASH); }