jasper rest Api integration with java

0

Hi,

i want to integrate the rest Api of jasper with my java code using http client. am able to create a new organization and users by passing it  with PP parameter (eg

http://localhost:8095/jasperserver-pro?pp=u=testuser_27%7Cr=ROLE_USER).

bt the other rest_v2 api' s are not working and return 401 status (eg ;

http://localhost:8095/jasperserver-pro/rest_v2/users?pp=u=testuser_27%7Cr=ROLE_USER)

Thanks for your valuable time and looking forward for your reply

Thanks & Regards,

Lija G

lija.g's picture
2
Joined: Mar 5 2019 - 3:46am
Last seen: 8 months 1 week ago

1 Answer:

0

The 401 response here looks to indicate that your user does not have sufficient permissions to execute the request. The organization should not be creatable by the regular ROLE_USER, only ROLE_ADMINISTRATOR and ROLE_SUPERUSER should be allowed to do that, as well as manage users. Have a look at the bean filterInvocationInterceptor in applicationContext-security-web.xml and applicationContext-security-pro-web.xml to see what roles are required to access certain REST endpoints.

Friendly User's picture
Joined: Oct 8 2009 - 5:59am
Last seen: 10 hours 34 min ago
Feedback
randomness