Example #1
0
        public void Setup()
        {
            var pubkey   = new KeyManager.KeyManager("claimsTest", "dev", "../../testkeys")["claimsTest"].Pub.Result;
            var verifier = new Crypto.Verifier(pubkey, isPrivate: false);

            claims = new ClaimsFactory((data, sig) => verifier.Verify(data, sig), new Claims.Models.ClaimsAuthority {
            }).Parse(ticket);
        }
Example #2
0
 public void Setup()
 {
     var pubkey = new KeyManager.KeyManager("claimsTest", "dev", "../../testkeys")["claimsTest"].Pub.Result;
     var verifier = new Crypto.Verifier(pubkey, isPrivate: false);
     claims = new ClaimsFactory((data, sig) => verifier.Verify(data, sig), new Claims.Models.ClaimsAuthority { }).Parse(ticket);
 }