Discussions
Streamline Invoice Processing with AI-Powered Automation
Use AI-Driven Insights for Faster, Better Planning and Forecasting
How to use jsrsasign.js in SuiteScript Debugger for OAuth 2.0 Client Credential Grant flow?
Hi All,
I'm new to this OAuth 2.0 Client Credential Grant flow. I'm having problem correctly using jsrsasign.js, or I'm unable to spot my scripting mistakes. SuiteScript Debugger reported error "init failed:Error: not supported argument" upon signing the JWT in my require() script in debugger. jsrsasign.js of course has no problem, the problem must be how I am using it. Please can anyone show me the way?
jsrassign.js was copy/paste into my require() script for debugging, and it was downloaded from
I've referenced SuiteAnswer 1013484 for using Postman to get Access Token from OAuth 2.0 Client Credential; and got it working. ie. Postman returned the Access Token, see it using jsrsasign without problem, and created OAuth 2.0 Authorized Application record at OAuth 2.0 Netsuite instance.