public void testPositive_JustSign()
        {
            JWTOptions options1 = new JWTOptions();

            options1.SetSecret(hexaKey);
            bool verification = jwt.DoVerifyJustSignature(token, "HS256", options1);

            True(verification, jwt);
        }
コード例 #2
0
        public void TestDomains()
        {
            options.SetSecret(hexaKey);
            string token = jwt.DoCreate("HS256 ", claims, options);

            Assert.IsFalse(jwt.HasError());
            bool verification = jwt.DoVerifyJustSignature(token, " HS256", options);

            True(verification, jwt);
        }