<@U6SNW6BC3> I just got off the phone wiht NEtSuit...
# suitescript
s
@mrob I just got off the phone wiht NEtSuite support regarding that exact error (
MissingTokenPassportRequiredFields
) when using Jersey 2.28 to try and authenticate with OAuth 1.0. The issue in my case seems to be related to Jersey 2.x adding
oauth_callback="oob"
to the OAuth authentication header
m
hey svon, thanks for the follow up! I'll check into that. I have definitely seem that key/value pair somewhere but I am pretty sure it wasn't in my header since I'm manually building all pieces of it
Hey @scottvonduhn did you get any additional information on this? I can confirm that I don't have an
oauth_callback
property in my GET request. It's
Copy code
{:Authorization=>
  "OAuth realm=, oauth_consumer_key=, oauth_nonce=, oauth_signature=, oauth_signature_method=HMAC-SHA256, oauth_timestamp=, oauth_token=, oauth_version=1.0",
 "Content-Type"=>"application/json"}
(obviously values removed). I do wonder if the formatting of a single string with all the Oauth properties is a potential issue?
their example is
Copy code
Authorization: OAuth realm="123456", oauth_consumer_key="ef40afdd8abaac111b13825dd5e5e2ddddb44f86d5a0dd6dcf38c20aae6b67e4", oauth_token="2b0ce516420110bcbd36b69e99196d1b7f6de3c6234c5afb799b73d87569f5cc", oauth_nonce="fjaLirsIcCGVZWzBX0pg", oauth_timestamp="1508242306", oauth_signature_method="HMAC-SHA256", oauth_version="1.0", oauth_signature="7mpNx1RdQn4VLSyeEwCK7jFBjGQ0blzwDSMU9Kg5Rmg%3D"
I was able to get to the next step (invalid signature) by hardcoding double quotes into my auth header. i.e.
oauth_consumer_key=\"12345\"