Maybe checking out this code 1) from an app that I am working on can help you?
I am making unauthorized calls to the endpoints /register and /authenticate.
The other endpoints use basic authentication.
See also docs 2) and further
1)
https://github.com/johandoornenbal/matching/blob/master/webapp/src/main/java/info/matchingservice/webapp/custom_rest/CustomAuthenticationSessionStrategyBasicAuth.java
2)
https://isis.apache.org/guides/ug.html#8.9.2.-restful-objects-viewer
Grtz Johan
Hello.
I wrote a simple JavaScript app which makes a call to invoke an Apache Isis
RO web service. When making the GET call I am getting an error that seems to
be due to the fact that I have not included authentication in my app yet. Is
there any reference that I can read to document myself on how to
authenticate to make HTTP calls using authentication?
Cesar.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus