I have installed version 6.0.3. When I am accessing localhost:8080/login.jsp, regardless of right/wrong password, always login page is getting retured.
I have used following option
Basic Auth: admin/admin
Thanks Siddic…
below command has been used to get the cookie
curl -b cookie.txt --location --request POST http://localhost:8080/login.jsp --header ‹ Content-Type:application/json › --data-raw ‹ {« username »:« admin », « password »:« admin »} ›
I had created cookie.txt in local.
I can see the cookie is updated in cookie.txt
then I tried to use cookie from CLI for below command
curl -c cookie.txt --location --request POST http://localhost:8080/ws/action --header ‹ Content-Type:application/json › --data-raw ‹ {« model »: « com.axelor.meta.db.MetaView », « action »: « action-meta-restore-all », « data »: {"_ domain": null, « domainContext": {" id »: null, « _ model »: « com.axelor.meta.db.MetaView »}, « operator »: « and », « criteria »: [], « _ signal »: « restoreAll » }} ›
but I was still getting 401 error.
Later I have copied the same cookie in POSTMAN and then I was able to call services