Documentation / Clarification for Visualize.js Authentication via Login Hooks


My team is developing a web application that uses JasperReports Server (AWS) and Visualize.js to display data visualizations to our customers within our application. One of the key components with this setup is the JRS authentication that must happen with Visualize.js on our frontend when a user attempts to view embedded reports. The documentation available for Visualize.js consistently mentions three methods: Plain text credentials, SSO Tokens, and Login Hooks.

Our goal is as follows: When Visualize.js attempts to authenticate a user, we want to ensure that the username and password being sent to JRS actually belong to the user making the request. This requires that a request be made to our web application.

At first glance, the “Login with Hooks” option for authentication with Visualize.js seems to be the best approach for us to achieve our goal. However, there seems to be very little explanation on how this authentication approach actually works in the documentation. The only documentation we have been able to find is a javascript code snippet with a few comments (see or

Is anyone aware of documentation that further explains how this authentication method works? Specifically, we are hoping to understand definitively:

1. Can the URL of the custom login function point to our web application’s server (such as or can it only point to JRS (such as, shown in the documentation)?

2. If our only choice is a URL pointing to JRS (such as, is there documentation that details how to create such a custom login function?

briann's picture
Joined: Jan 22 2015 - 9:06am
Last seen: 4 years 1 month ago

Any word on this?

Tim.Heckel - 4 years 1 month ago

Unfortunately not. In the short term we've sacrificed the server-side validation of credentials, but certainly hope to transition to a better solution when one is identified.

briann - 4 years 1 month ago

In version 6.1.0 of JRS there is an option available of Using Visualize.js Without Authentication. See documentation link

atifoxon - 3 years 9 months ago

0 Answers:

No answers yet