RE: Has anyone successfully tested Oauth 2.0 in Postman?

Hi all,

I am brand new to Oauth 2.0 so I may be making some pretty large mistakes here. I tried to follow along through the Help pages and SuiteAnswers, and did not get any errors during the setup of the Integration Record.

I am using “https://oauthtest/callback” as the “redirect URI”

RE: Has anyone successfully tested Oauth 2.0 in Postman?

I can get all the way to the login and permission screen in Postman for NetSuite,

RE: Has anyone successfully tested Oauth 2.0 in Postman?

 

However, once I try to click Continue, Postman states there was an error and to check the console logs. The log just states:

“Error: Could not complete OAuth 2.0 token request”

Interestingly enough, when I navigate to the “OAuth 2.0 Authorized Applications” page in NetSuite, I see the Users/Roles I tried to log in with, and the correct scope. I am just trying to see if anyone knows if this is an error with Postman or with my setup in NetSuite.

Any/all feedback is much appreciated!

vfalk Rookie Asked on June 11, 2020 in SuiteCloud.
Add Comment
1 Answers
Best answer

Client Authentication should be set to Send as Basic Auth header.

If you want to read a rather long thread: https://netsuiteprofessionals.slack.com/archives/C29HQS63G/p1587504058334000?thread_ts=1587498204.325800&cid=C29HQS63G might help.

Intermediate Answered on June 11, 2020.

THANK YOU!

Reading the thread, I noticed I had the Access Token URL wrong as well. I needed:

https://ACCOUNTID.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token

So hopefully, to help the next soul is wading into the Oauth 2.0 waters, here is the working setup in NetSuite AND Postman:

RE: Has anyone successfully tested Oauth 2.0 in Postman?

Create an Integration record like you normally would, only need to check the Authorization Code Grant and give a valid URI.

RE: Has anyone successfully tested Oauth 2.0 in Postman?

on June 11, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.