I have a scripting tool on my Portal which works fine if the user is signed in. However, if the user is not signed in, the scripting tool obviously doesn't work.
I also have a token, which has been generated earlier (though not much earlier - the token is still current).
Is it possible to use this token to run my scripting tool, and if so, how should it be passed into the URL? This is a very basic version of how it works:
window.open("https://myserver.com/server/rest/services/MyPrintLayouts/ScriptX01_AGP2_9/GPServer/ScriptX01/submitJob?Id=" + vId + "&FileDestination=" + vDestination + "&env%3AoutSR=&env%3AprocessSR=&returnZ=false&returnM=false&returnTrueCurves=false&context=&f=html", '_blank');I've tried adding a
&token=" + token
Extra token parameter in there but that's not working. Each time it gets called, if the user isn't signed in, it will go to the sign in screen.