authentication - "Invalid JWT Signature." with meteor-google-oauth-jwt -
i trying submit sitemap.xml programmatically, following instructions here: https://developers.google.com/webmaster-tools/search-console-api-original/v3/sitemaps/submit#auth
i do:
// call once set jwt httpjwt.setjwtoptions({     email : "[ client id first dot ]@developer.gserviceaccount.com",     key : assets.gettext("key.pem"), // key file assets     scopes : [         "https://www.googleapis.com/auth/webmasters"     ], });  var submiturl = "https://www.googleapis.com/webmasters/v3/sites/https%3a%2f%2fwww.spoticle.com/sitemaps/https%3a%2f%2fwww.spoticle.com%2fsitemap.xml"; var result = httpjwt.get(submiturl); ... , here result:
error: failed [400] { "error" : "invalid_grant", "error_description" : "invalid jwt signature." }
i can, however, generate jwt doing:
var jwt = googleoauthjwt.encodejwt({     email : "[ client id first dot ]@developer.gserviceaccount.com",     key : assets.gettext("key.pem"), // key file assets     scopes : [         "https://www.googleapis.com/auth/webmasters"     ] }); ... don't know how verify token valid.
any appreciated. thanks.
 
 
Comments
Post a Comment