Hello there! I had a custom integration that was u...
# suitescript
m
Hello there! I had a custom integration that was using as endpoint a restlet, the integration is using OAuth 1.0 with HMAC-SHA1 as signature, I had to change that to HMAC-SHA256, but is still not working. Does anyone have a recommendation?
b
Use the Login Audit Trail and share the details of the error
m
Hi battk, it doesn’t say too much, status is failure and role is not selected. my integration response its “INVALID_LOGIN_ATTEMPT” it’s the same if I use postman
b
read the docs to learn how details work
m
I did, but if I click the use advance search checbox I get an error: An unexpected error has occurred. Please click here to notify support and provide your contact information.
b
you are going to need to get to the details, so you want to get started on that support case
m
will do so, thanks
m
Hey Martin,
Are you using a specific library to do the OAuth call?
As far as I can tell, Netsuite didn't particularly care initially between SHA-1 and SHA-256, so swapping it shouldn't effect your code probably. It might be a problem with the library you are using if you are using one.
Not sure though.
m
Hi Michael, I will review that then, thank you! We decide to upgrade the algorithm because NetSuite kinda warned a year ago: https://community.oracle.com/netsuite/discussion/4471889/24-hour-test-window-for-hmac-s[…]recation-for-integrations-using-token-based-authentication
m
Hey @Martin, which programming language are you trying to make the call from?