What I have is very similar to that. I do not have...
# suitescript
n
What I have is very similar to that. I do not have the Oauth token yet, and I have been using HMAC-SHA256. I have been trying to follow the 'Three-Step TBA Authorization Flow' process to obtain a token (/app/help/helpcenter.nl?fid=section_156337186044.html). I have an integration record, its consumer key and secret, and have enabled the relevant token-based authentication settings on the integration record. The roles that I have tested with have permissions to log in with TBA. I'm not sure what I am missing.
b
what step of the authorization flow are you on?
keep in mind that the 3 step flow is generally a suiteapp level tool. there are much easier ways of getting tokens if you have direct access to the account
n
I am on the first step of the flow.
b
what parameters are you sending
n
Oauth oauth_consumer_key=[consumer key] oauth_signature_method=HMAC-SHA256 oauth_signature=[signature] oauth_timestamp=[timestamp] oauth_nonce=[nonce] oauth_version=1.0 oauth_callback=https://callbackUrl.com/path realm=TSTDRV#######
I have sent this in the Authorization header or as URL parameters and neither worked
b
other than specifying the role
are you sure the signature is generated correctly
n
I am fairly certain. If I use the example data from the Netsuite helpcenter, I can generate the example signature. I have also added the role to the parameters above and got the same results.
b
are you getting a request to your callback url?
n
I haven't checked that. Should I be, at this stage?
b
i dont think so, i personally was hoping not to debug signatures
from what you have shared, my guess is that your values in the header are missing quotes or percent encoding
you probably want to start the troubleshooting steps