REST API Bonita 6.x Authentication 401 Unauthorized

Documentation provides helpful guidelines:

I’ll recommend you take a look to the REST documentation section .

I fully agree with you “the web api documentation is not nearly comprehensive enough to get anything working properly”.

Hi,

You should not read the cookie directly, you should call this API method to retrieve all session information:
GET http://localhost:8080/bonita/API/identity/system/session/0

Also, if you wish to speed up your Angular developments with the Bonita REST API, please take a look at this project:
https://github.com/rodriguelegall/ngBonita

Cheers,

Philippe

Unfortunately ngBonita gives exactly the same error: 401!

The login service posts a request with the form data:
username:walter.bates
password:bpm
redirect:false
A set cookie is returned with JSESSIONID xxxxxxx73A4

The call to the unused session returns {}

The http-Get to obtain the processes fails with 401, obviously as its JSESSIONID is not set to the new cookie.

Back to square one!!!

yes, i am struggling with this issue for past couple days and not sure how to resolve.