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

Basic Auth not working, but Auth via Bearer Token


bmservices

Recommended Posts

Hi together,

I'm working with REST API on a jasper which was not setup by me. It seems to be configured to work with authentication with bearer token, but not with basic auth.

I want to to do a get REQUEST ON:

https://<SERVER>/jasperserver/rest_v2/reports/Reports/VK/DF/SP/reporting/AVBAll.pdf

Sending a header like "Authorization: Bearer ..." works perfectly fine.

Sending a header like "Authorization: Basic " . base64_encode("<user>:<pass>") ends in a 401 error.

I'm sure that user and pass are correct. I can login with these credentials into the web interface of the jasper server.

Trying to to it via browser:
https://<SERVER>/jasperserver/rest_v2/reports/Reports/VK/DF/SP/reporting/AVBAll.pdf

=> Popup for Crendentials. When I enter the correct ones, the popup comes again. Authentication failed.

 

So it seems that basic authentication is disabled on the jasper server. How can I enable it again?

Thanks for tips, Bernd

 

 

 

 

 

 

Link to comment
Share on other sites

  • 3 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

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...