Did you have any luck accomplishing this? I'm trying to do something similar/same, I want to get an oauth2 access token for a google service account so that I can then make calls to the gmail api. However after forming the JWT to post to the oauth endpoint all I get is Invalid signature. I have a stackoverflow question up right now that goes into more detail than this post with some of my code. You can see it here: https://stackoverflow.com/questions/46221972/nodejs-post-request-to-get-oauth2-token-for-a-service-account
Did you get it to work? On Thursday, July 13, 2017 at 4:37:53 PM UTC-4, Nalini Shrma wrote: > > Hi, > > I want to generate RSA SHA256 token based on *jwt.io <http://jwt.io/>* by > javascript. Is there any source code or anything or available. > > > Regards > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/1e3d8ae9-57ae-4279-9cc3-298b5bfe9064%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
