Jump to content
Changes to the Jaspersoft community edition download ×

Visualize.js Authentication Error

Recommended Posts

We're attempting to integrate Jasper Reports (via the Visualize.js SDK) into a single page web application (written with Ember).

I've noticed that after a user has been interacting with the app for a while, eventually calls to Visualize.js fail with an "Authentication Error". From the developer guide, I read that this can either be because of invalid credentials or a session timeout. Refreshing the app gets past the error for a while, but eventually calls start failing again with the same error.

From my limited experience with the product, it appears we're authenticating on every request to Visualize.js:

visualize  auth:  name: "user"  password: "password", (v) ->  report = v.report    resource: "/path/to/report"    container: "#container"    error: (err) ->      alert err.message[/code]

If we're passing in credentials on each call to visualize, could this possibly be a session timeout? If so, is there a way to prevent session timeouts (e.g. make it more stateless), so the web app can manage this directly?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...