[#10786] - Unable to execute reports using Keycloak SSO with visualize.js

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Feature
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

I am trying to execute a report with visualize.js and using external Keycloak SSO for authentication. I retrieved an access token from SSO server and need to pass the token in the header. The Visualize.js documentation says that we can add the header object but while adding a header it gives me an error saying "header" is not a valid JSON syntax.

I am using below syntax for making the request
visualize({
server:"http://localhost:8080/jasperserver-pro/",
auth : {
token: keycloak.token
headers:{Authorization:"Bearer"}
}
}, function (v){
console.log("LOGGED IN ");
}, function(err){
console.log(err.message);
}
);

v6.5
Authentication
tariq.anwar's picture
Joined: Apr 19 2018 - 11:50am
Last seen: 9 months 3 weeks ago

3 Comments:

#1

Is there any update on how to use bearer token with Visualizejs?

#2

I was able to authenticate keycloak token by sending it in request parameter.

#3

Can you please share me the Url how you have framed as a request param?

Feedback