Token based Authentication - Authentication error - using visualize.js

321 views
Skip to first unread message

Arvind Chauhan

unread,
Jul 13, 2015, 4:04:56 AM7/13/15
to jasper-sup...@googlegroups.com
Hi Guys,

Am using jasper 6 trial where I followed http://community.jaspersoft.com/documentation/jasperreports-authentication-cookbook/v56/token-based-authentication# link to configure jasper for Token-based Authentication using visualize.js
.
For very first request it works perfect and got alert saying "You are now logged into JasperReports Server with your token." but when I make second request I got the error message saying "Authentication error".

Below is request call :- 

var authToken = encodeURIComponent("u=John|o=organization_1|pa1=USA|pa2=1");
visualize.config({
    scripts: "optimized-scripts",
    logEnabled: true,
    logLevel: "error",
    auth: {
        token: authToken,
        preAuth: true,
        tokenName: "pp"
    }

});

If I delete localhost cookies, it works perfect for first request, after refreshing the page and call the function I got Authentication error message.

Any idea to fix it.

Thanks,
Arvind C

Arvind Chauhan

unread,
Jul 13, 2015, 7:28:40 AM7/13/15
to jasper-sup...@googlegroups.com
UPDATE: I am using jasper 6.0.1

Ziga Vertovsek

unread,
Sep 22, 2015, 9:13:36 AM9/22/15
to Jasper Support Forum
I have the same issue. Have you fixed it till now? Did you get any answers from Jasper team?

Thanks
Reply all
Reply to author
Forward
0 new messages