finn Posted January 5, 2018 Posted January 5, 2018 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
elizam Posted January 5, 2018 Posted January 5, 2018 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+sourcehttps://community.jaspersoft.com/project/web-service-data-sourcehttps://community.jaspersoft.com/wiki/customer-demo-example-using-webservice-data-sourceIn an upcoming release of JSS, you should be able to add the authentication token when you create the JSON data adapter.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now