Connect Jaspersoft to REST Datasource w/ Authentication

Hi,

I'm trying to connect Jaspersoft Studio to a resource via a REST-Call to a given URL that returns data in JSON-Format. However, the remote resource requires authentication via a token. Is there any way to pass the authentication token in the request header (or get the authentication to work), as understandably I don't want to pass it via the URL?

Kind regards

finn's picture
2
Joined: Jan 5 2018 - 2:11am
Last seen: 5 years 2 months ago

1 Answer:

 

As far as I know, it is not possible with iReport. It can be done with Jaspersoft Studio (the replacement for iReport), but at the moment it is not as easy as it should be.  Currently, you can try using the webservices data source with JSS, although it is not an official part of the product, so finding the right version to install may take a little digging:

https://community.jaspersoft.com/search?query=webservices+data+source

https://community.jaspersoft.com/project/web-service-data-source

https://community.jaspersoft.com/wiki/customer-demo-example-using-webser...

In an upcoming release of JSS, you should be able to add the authentication token when you create the JSON data adapter.

elizam's picture
13944
Joined: Mar 5 2012 - 9:19am
Last seen: 2 years 7 months ago
Feedback