Can anyone tell me, how you supply an NS script/ form for an Oauth2 redirect_uri?
I'm asking this since an app would require you to specify something like
https://system.na1.netsuite.com/your_file.extension
but references to "items" in NS typically look like
(script) :
https://system.na1.netsuite.com/app/site/hosting/scriptlet.nl?script=123&deploy=1&compid=TSTDRV12346578
When I register this with the app I believe it is splitting off the parameters that (pseudo) make up the URI for the script.Now I could be going about this entirely wrong but NetSuite help are as much use as a chocolate teapot right now so I'm hoping some kind soul can direct me.I've read up about as much as I can bare on SSO / OpenID / SuiteSigon to the point where I may well have tied myself in a mental knot or be over thinking this.So far I have:1. Registered my application2. Setup an SSO Touchpoint.3. Tried to setup the redirect_uri (actually just setting it to https://system.na1.netsuite.com works to a point.My code is a Suitelet running from a menu linkI make a call using nlapiOutboundSSO and see the returned URI and token.At this point I'm not sure if I need to do something with the token.I thought I needed to swap this for something else with the application.However if I choose to ignore the token and create the URI to request the user signs in / accepts or declines access to their account from NetSuite and simply code:var content = '<script type="text/javascript">window.location = "' + url + '";</script>'; response.write(content);
This actually works in as far as the user is asked to login and then cancel / accept access.However after this point I do not know how to establish the user response and thought that the redirect_url should point back to my script so I could then ascertain (somehow) the return values from the request.I feel I'm almost there but just missing some fact or the redirect_uri is stopping me.Any help much appreciated.