Hello Everyone,
I am trying to implement the OAuth 2.0 and having the issue while generating the code in the initial step through Postman.
I have prepared the below string -
https://<ACCOUNT>.app.netsuite.com/app/login/oauth2/authorize.nl?redirect_uri=https%3A%2F%2Fwww.example.com&client_id=XXXXXXXXXXXXXX&response_type=code&scope=restlets&state=ykv2XLx1BpT5Q0F3MRPHb94j
If I try to open this string in browser my job is done..i.e. it will take me to the redirect uri and the url will have the code = 'XXXXXX', which I am grabbing from there for now.
If I try to do a Get method in Postman, it will give a Netsuite login page html in return..I need to fix this , as the requirement is to have the OAuth 2.0 through script.. I am stuck in the 1st step of code generation process here...
Hello battk, Thanks for your response...we already have the Token based authentication implemented in our instance and the requirement is to replace with the Outh 2.0...
Just now I learnt that Machine to Machine grant will solve our problem as it will bypass the browser interaction...I need to check if there are any sample codes over Internet or anyone who already implemented this..
d
Derek Ritchison
12/14/2022, 4:46 AM
It was an absolute pain in the ass, but I have this working in a Powershell script. I can share tomorrow when I am back in front of my laptop... if it will help.