Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        public static bool AddUserToRole(CatOps.Users user, CatOps.Roles role)
        {
            SetSecurityContext();

            return catops.AssignPermissions(user.Login, AppName, role.RoleID, HASH);
        }
Esempio n. 3
0
        public static int InsertNewUser(CatOps.Users user)
        {
            SetSecurityContext();

            return catops.InsertNewUser(user, HASH);
        }