private static SecEventDescriptor CreateDescriptor(SecEvent evt)
 {
     return(new SecEventDescriptor(Jwk.None, SignatureAlgorithm.None)
     {
         Payload = new JwtPayload
         {
             { "iss", "https://scim.example.com" },
             { "iat", 1458496404 },
             { "jti", "4d3559ec67504aaba65d40b0363faad8" },
             { "aud", new [] { "https://scim.example.com/Feeds/98d52461fa5bbc879593b7754", "https://scim.example.com/Feeds/5d7604516b1d08641d7676ee7" } },
             { "events", new JsonObject
               {
                   evt
               } }
         }
     });
 }
Beispiel #2
0
 /// <summary>
 /// Adds the claim of type <see cref="object"/> to the current <see cref="JwtPayload"/>.
 /// </summary>
 public static void Add(this JsonObject jsonObject, SecEvent secEvent)
 {
     jsonObject.Add(secEvent.Name, secEvent);
 }