Good morning,
I need to set-up Inbound Single Sign-On on several NS accounts, for customer support purposes, to connect to customers' NS account form our NS account, without knowing the username / password.
I tried to find an alternative solution to set up a customer NS account in a faster way, since the activation of this feature is a NS manual process for each account (I need to send the public/private keys to CertSignReq@netsuite.com and wait for confirmation).
I won't tell all the tries I've made, only the one that (I guess) is closer to the solution, but still not working:
- let's call MASTER the account into which I log with username / password
- let's call CLIENT the account where I want to land without entering username / password
- from the MASTER account, through WebServices (SuiteTalk), I call the "login" operation from a suitelet (using the CLIENT account username / password, but without knowing it because they are saved in configuration records accessible only by the admin)
- when the suitelet successfully logs in through WS, an additional header is sent to the browser: "Set-Cookie"; the value of the header is extracted by the WebSerrvice response, and should indicate the session ID corresponding to the CLIENT account, so that, with that header, redirecting to NS Home subtab should make the job done
I was thinking that in this way I could accomplish my needs, but the response.addHeader('Set-Cookie', '...') code in the suitelet throws an exception, saying: "JavaException: com.netledger.core.scripting.NLServerSideScriptException: One or more headers are not valid."
Is there any way to send a "Set-Cookie" header from a suitelet to the browser?
Does anyone has succesfully done something similar to what I need?
Thank you,
Alessio