I'm using Box.com for my application. For that I am creating JWT assertion by JavaScript and for that we need 3 parts:
I have written JavaScript code for SHA256 to generate JWT based on JWT.io, while I am unable to do for RSA-SHA256. Actually i am able to generate header, Payload but unable to generate signature part in RSA-SHA256
So as per Box document, they've given the steps to create HEADER and CLAIMS, but not about how to create SIGNATURE. I've also browsed in external sources, all sources have been made with HS256 algorithms. But Box.com API supports only “RS256″, “RS384″, and “RS512″ algorithms.
So my question here is, how to create SIGNATURE part with RS256 algorithms. Any help would be appreciated.