Jump to content
We've recently updated our Privacy Statement, available here ×

Connect Jaspersoft to REST Datasource w/ Authentication


finn

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 

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-webservice-data-source

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

Link to comment
Share on other sites

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