Creating a new process from Java web application using createProcessAsUser and waffle SSO impersonation. Everything works fine in chrome and any other browsers normal window, when I try to access the web application using incognito/private window, new process is not created, but didn't get any errors or warnings. I don't see any difference when I run it in normal/private mode. Any insights would be greatly helpful.
Calling with:
Advapi32.INSTANCE.CreateProcessAsUser(
primaryToken.getValue(),
null,
"" + batchFile + " " + workFlowId + " " + tokenAccount.name
+ " >> " + fileName,
null,
null,
false,
WinNT.CREATE_NEW_CONSOLE | WinNT.CREATE_UNICODE_ENVIRONMENT,
environment,
fileDirectory,
startupInfo,
processtartupInfo
)