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:
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 "}