Jump to content
We've recently updated our Privacy Statement, available here ×

rest_v2 and Full Authentication Required Error


james.perry

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...