there is issue with token based authentication with visualizejs. As stated in documentation following is possible:
However this is not possible to achieve. I use following code to authenticate in one page
and when I navigate to another page inside same app session and use this code, no alert pop up.
In console, I got redirect, followed by 200 OK response and nothing else happen. In /setting/auth request I can see JSESSIONID is passed to server.
Part of the problem is described here
When I applied fix to local jasper server instance, it solved my problem, but cannot change it on AWS instance, it does not solve it.