Esempio n. 1
0
        public void TestCreateLogin()
        {
            GateKeeperProvider currentProvider = (GateKeeperProvider)Membership.Provider;

            HarperACL.Authenticator     auth;
            SupportClasses.BaseResponse baseResponse;
            string sfgid = HarperCRYPTO.Cryptography.Hash("81060800005", true);
            string zip   = "76102";
            string un    = "mswynne";
            string pw    = HarperCRYPTO.Cryptography.Hash("mswynne1", true);

            //string un = "rcalvert";
            //string pw = "rcalvert2011";
            //10000014618
            //10000001683
            //10000000772
            //80091600006
            //10001264756

            SecureServices.SecureServices client    = new Tests.SecureServices.SecureServices();
            SecureServices.BaseResponse   bresponse = client.CreateUser(sfgid, un, pw, zip);
            if (bresponse.TypedResponse != null &&
                bresponse.TypedResponse.Success &&
                (bresponse.TypedResponse as SecureServices.LoginResponse).Authenticated)
            {
                Assert.AreEqual(true, true);
            }
        }
Esempio n. 2
0
        public void TestLogin()
        {
            GateKeeperProvider currentProvider = (GateKeeperProvider)Membership.Provider;
            string             u;
            string             p;

            HarperACL.Authenticator     auth;
            SupportClasses.BaseResponse baseResponse;
            //u = "ut91";

            //u = "*****@*****.**";
            //p = "gilman10";
            //u = "premier1";
            //p = "@ndrew11";
            //u = "*****@*****.**";
            //p = "ledwards2011";
            //u = "mcoupland";
            //p = "testing123";
            //u = "testuser0001";
            //p = "testuser0001";
            //u = "aklein";
            //p = "aklein2011";
            //u = "kdicker";
            //p = "testing123";
            //u = "trademarkmedia";
            //p = "4eFr2cHE";
            //u = "cms_jmoon";
            //p = "andrewharper10";
            //u = "janebooz";
            //p = "october";
            //u = "*****@*****.**";
            //p = "marchbanks";
            //u = "*****@*****.**";            //p = "testing123";
            u            = "mcoupland";
            p            = "img";
            p            = HarperCRYPTO.Cryptography.Hash(p, true);
            auth         = new HarperACL.Authenticator(u, p, true, true, false);
            baseResponse = auth.Login();

            SecureServices.SecureServices client    = new Tests.SecureServices.SecureServices();
            SecureServices.BaseResponse   bresponse = client.Login(u, p, string.Empty, string.Empty);
            if (bresponse.TypedResponse != null &&
                bresponse.TypedResponse.Success &&
                (bresponse.TypedResponse as SecureServices.LoginResponse).Authenticated)
            {
                Assert.AreEqual(true, true);
            }
        }
Esempio n. 3
0
        public void TestCreateLogin()
        {
            GateKeeperProvider currentProvider = (GateKeeperProvider)Membership.Provider;
            HarperACL.Authenticator auth;
            SupportClasses.BaseResponse baseResponse;
            string sfgid = HarperCRYPTO.Cryptography.Hash("81060800005", true);
            string zip = "76102";
            string un = "mswynne";
            string pw = HarperCRYPTO.Cryptography.Hash("mswynne1", true);
            //string un = "rcalvert";
            //string pw = "rcalvert2011";
            //10000014618
            //10000001683
            //10000000772
            //80091600006
            //10001264756

            SecureServices.SecureServices client = new Tests.SecureServices.SecureServices();
            SecureServices.BaseResponse bresponse = client.CreateUser(sfgid, un, pw, zip);
            if (bresponse.TypedResponse != null
                && bresponse.TypedResponse.Success
                && (bresponse.TypedResponse as SecureServices.LoginResponse).Authenticated)
            {
                Assert.AreEqual(true, true);
            }
        }
Esempio n. 4
0
        public void TestLogin()
        {
            GateKeeperProvider currentProvider = (GateKeeperProvider)Membership.Provider;
            string u;
            string p;
            HarperACL.Authenticator auth;
            SupportClasses.BaseResponse baseResponse;
            //u = "ut91";

            //u = "*****@*****.**";
            //p = "gilman10";
            //u = "premier1";
            //p = "@ndrew11";
            //u = "*****@*****.**";
            //p = "ledwards2011";
            //u = "mcoupland";
            //p = "testing123";
            //u = "testuser0001";
            //p = "testuser0001";
            //u = "aklein";
            //p = "aklein2011";
            //u = "kdicker";
            //p = "testing123";
            //u = "trademarkmedia";
            //p = "4eFr2cHE";
            //u = "cms_jmoon";
            //p = "andrewharper10";
            //u = "janebooz";
            //p = "october";
            //u = "*****@*****.**";
            //p = "marchbanks";
            //u = "*****@*****.**";            //p = "testing123";
            u = "mcoupland";
            p = "img";
            p = HarperCRYPTO.Cryptography.Hash(p, true);
            auth = new HarperACL.Authenticator(u, p, true, true, false);
            baseResponse = auth.Login();

            SecureServices.SecureServices client = new Tests.SecureServices.SecureServices();
            SecureServices.BaseResponse bresponse = client.Login(u, p, string.Empty, string.Empty);
            if (bresponse.TypedResponse != null
                && bresponse.TypedResponse.Success
                && (bresponse.TypedResponse as SecureServices.LoginResponse).Authenticated)
            {
                Assert.AreEqual(true, true);
            }
        }