rest_v2 and Full Authentication Required Error

I'm trying to access the rest_v2 endpoint (mainly because it supports JSON) but I keep getting an error that states "Full authentication is required to access this resource".

For example:

$ curl -u superuser:superuser -H 'Accept: application/json' http://localhost:8080/jasperserver-pro/rest_v2/permissions/
Full authentication is required to access this resource
 
What am I doing wrong here?
 
This is a v5.2 instance of JRS.
 
Thx
james.perry's picture
Joined: Sep 8 2014 - 8:18pm
Last seen: 6 years 6 months ago

1 Answer:

mmm.. I have and is working fine for me (tested in 5.2 and 5.6) is your SuperUser user and pass OK?

~ admin$ curl -u superuser:superuser -H 'Accept: application/json' http://localhost:8080/jasperserver-pro/rest_v2/permissions/

{"permission":[{"uri":"/","recipient":"role:/ROLE_ADMINISTRATOR","mask":1},{"uri":"/","recipient":"role:/ROLE_USER","mask":2}]}

~ admin$  curl -u superuser:superuser -H 'Accept: application/json' http://localhost:8080/jasperserver-pro/rest_v2/serverInfo

{"dateFormatPattern":"yyyy-MM-dd","datetimeFormatPattern":"yyyy-MM-dd HH:mm:ss","version":"5.2.0","edition":"PRO","editionName":"Enterprise","licenseType":"Commercial","build":"20130627_1305","expiration":"2015-01-01 07:59:59","features":"Fusion AHD EXP DB ANA AUD MT "}

marianol's picture
15800
Joined: Sep 13 2011 - 8:04am
Last seen: 4 years 6 months ago
Feedback