Jump to content
Changes to the Jaspersoft community edition download ×

Documentation / Clarification for Visualize.js Authentication via Login Hooks


briann

Recommended Posts

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 http://community.jaspersoft.com/documentation/tibco-jasperreports-server-visualizejs-guide/v60/api-reference-login-and-logout or http://jsfiddle.net/TIBCO_JS_Community/x7twvehg/).


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 http://our-web-application.com/jrs-authenticate) or can it only point to JRS (such as http://my.jasperserver.com/customLogin, shown in the documentation)?


2. If our only choice is a URL pointing to JRS (such as http://my.jasperserver.com/customLogin), is there documentation that details how to create such a custom login function?


Link to comment
Share on other sites

  • 1 month later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 3 months later...

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...