Hi all, Does anyone know if there is a method for ...
# general
k
Hi all, Does anyone know if there is a method for me to get the "Access Key" from Netsuite Auth2.0. Currently I need to login, then copy the code from the url and make a post request to token endpoint
b
normal usage of the Authorization Grant flow requires you to control your own server
which you use as the target for the redirect url so that it can do the post for you
k
Let's say I have an express server running, how can I fill in the username and password in login form in-order to get the code from URL? Only step I am confused about is how can I automatically login to my admin account after I make a get request to netsuite for login, and they send me an html login form. I understand the redirect URL and token after this.
b
Authorization Grant is not meant to automatically login for you
there is supposed to be an actual user granting access
k
Oh, understood
There fore if I want to do it automatically, I need to add an application to netsuite and it will generate that the key for me?
b
Token-based Authentication is the usual recommendation
you get the token once and can use it forever
the alternative is OAuth 2.0 Client Credentials Flow, which is so new that its documentation is still wrong
k
I see, I believe that is what I am using right now
I initially thought I could automatically get access key using that but I understand now
thank you