Exemple #1
0
        /// <summary>
        /// Creates a serialized header as specified in
        /// https://developers.google.com/accounts/docs/OAuth2ServiceAccount#formingheader.
        /// </summary>
        private static string CreateSerializedHeader()
        {
            var header = new GoogleJsonWebSignature.Header()
            {
                Algorithm = "RS256",
                Type      = "JWT"
            };

            return(NewtonsoftJsonSerializer.Instance.Serialize(header));
        }
    private string CreateSerializedHeader()
    {
      var header = new GoogleJsonWebSignature.Header()
      {
        Algorithm = "RS256",
        Type = "JWT"
      };

      return NewtonsoftJsonSerializer.Instance.Serialize(header);
    }