/// <summary>
 /// Gets the identity claim from a claim set
 /// </summary>
 /// <param name="set">The set.</param>
 /// <returns>The identity claim</returns>
 public static Claim GetIdentityClaim(this ClaimSet set)
 {
     try
     {
         return(set.First(claim =>
         {
             return claim.IsIdentity() == true;
         }));
     }
     catch (InvalidOperationException)
     {
         throw new ClaimNotFoundException("Identity Claim for: " + set.ToString());
     }
 }