How can an externally defined user make REST (v2) calls to Jaspersoft server?

How can an externally defined user make REST (v2) calls to Jaspersoft server, say to schedule a job?

I tried to send a PUT request to 'https://<mydomain.com>/jasperserver-pro/rest_v2/jobs?pp=<token>' with session id and  'X-REMOTE-DOMAIN: 1' properties set. But I am getting Http response 401 - Full authentication required as response.

Is there any specific REST client for Java that consider the case of externally defined user?

shaunthomas999's picture
Joined: Feb 17 2017 - 3:13am
Last seen: 5 years 2 weeks ago

1 Answer:

You just need to add "j_username" and "j_password" to your uri. If you don't want to add it to the uri, your need to setup a session beforehand using post.

http://community.jaspersoft.com/documentation/tibco-jasperreports-server...

hozawa's picture
171191
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago
Feedback