This topic contains 4 replies, has 0 voices, and was last updated by AnaMG 7 years, 6 months ago.

  • Author
    Posts
  • #1487

    JayDP123

    Anyone know a way to sign a Json Web Token with an RSA private key. I’ve been working on these JWTs, I’ve got everything right, I have the private key ready, but not sure how to use it as a signature, I think I need to encrypt in, maybe using N/crypto, or N/encode? I’m not sure, if you know, I would love some help!
    This is a cached copy. Click here to see the original post.

  • #1488

    azhukov

    We do not currently support JWT token format. Are you referring to Token-based Authentication? Which one do you use for RESTlets or Web Services?

  • #1489

    JayDP123

    I am trying to authenticate to Box.com. I would like to create the JWT using Suitescript, and then send it over to Box where it should get verified. And then say if a user clicks a button in Netsuite then a change gets made to a document in Box for example.

  • #1490

    chanarbon

    Hi @JayDP123,

    One suggestion would be usage of a jwt-js library included on your script since you are performing actions on the client side.

  • #1491

    AnaMG

    I have been trying to do a JWT in a server side script. I have used “N/encode” and “N/crypto”, it fails when I try “Hmac.update(options)”. I want to do SLQ updates to a Google Fusion table.

You must be logged in to reply to this topic.