Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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 "