james.perry Posted October 2, 2014 Share Posted October 2, 2014 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 Link to comment Share on other sites More sharing options...
marianol Posted October 6, 2014 Share Posted October 6, 2014 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 "} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now