Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
signature_invalid error in login audit trail using token-based auth
Has anyone successfully implemented the code in SuiteAnswer 44020 (https://netsuite.custhelp.com/app/answers/detail/a_id/44020/) to post to a restlet from another script with token based authentication?
I copied the script exactly except for the following:
1. Updated token, token secret, consumer, and consumer secret
2. Updated account ID and restlet URL
Then I created a suitelet in the same account as an existing restlet with the script file and applied the hmac-sha1.js and oauth-1.0a.js files linked from the SuiteAnswer as libraries. When I run the Suitelet, the response is {"error" : {"code" : "INVALID_LOGIN_ATTEMPT", "message" : "Invalid login attempt."}}. If I search the login audit trail, the detail for the failed login says "