Category: | Bug report |
Priority: | High |
Status: | New |
Project: | Severity: | Feature |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
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
3 Comments:
Is there any update on how to use bearer token with Visualizejs?
I was able to authenticate keycloak token by sending it in request parameter.
Can you please share me the Url how you have framed as a request param?