Rest v2 web service request login

Hi all,

im trying to use the web service REST v2 in order to run a report via my web application.

the url is http://myHost:8080/jasperserver/rest_v2/reports/myPath/myReportName.pdf?... and it is working fine but before opening the save/open dialog a popup appear and a login to my server is requested for accessing Protected Area

This is about Jasperserver or Tomcat configuration? Where cna i fint the .htaccess file for jasperserver?

Any help will be welcome.

Thannks

pspjasper's picture
417
Joined: Jul 18 2014 - 1:04am
Last seen: 3 years 3 weeks ago

2 Answers:

You can also make request in this format, which might be what you are looking for

http://<username>:<password>@localhost:8080/jasperserver-pro/rest_v2/

eg. http://superuser:superuser@localhost:8080/jasperserver-pro/rest_v2/

HTH.

 

nthapa's picture
1285
Joined: Jan 24 2014 - 9:53am
Last seen: 7 years 4 months ago

Thanks nthapa,

in this case is not enough to set the report permissions for the role_anonymous to read only or run only but i need to create a user with a password to use when generating the web service url?

In my case i need to use the report in another web application and access them generating an html tag href.

In this way user:password are public and readable.

No way to access the server exporting as anonymous user?

pspjasper's picture
417
Joined: Jul 18 2014 - 1:04am
Last seen: 3 years 3 weeks ago
Feedback