Using REST API needs to set up cookies

Hi,

I am trying to connect bpm API by using chrome REST client extension.
First call made is http://@ip:port/bonita/loginservice
I set authorization headers for this post method.
What ever the credentials i set, i always get a 200 ok status, “Set-Cookie: JSESSIONID=C496EA2177121C466D16E2A65BA2BD69; Path=/bonita/; HttpOnly”

But those informations do not allow me to call another method, like this one for example:
http://localhost:8280/bonita/API/bpm/flowNode/6003”. Calling this url send an exception
with this message: “message”: “Session is null!”

I believe that the login step does not work.
Could you help one this one?

Bonita 6.5
jdk 1.8.0_73

Find below the response when calling the login step:

Talend MDM Workflow

Welcome to Talend MDM Workflow

Login form

Unable to log in. Please check your username and password.

User
Password
Code highlighting thanks to CODE MIRROR

Bonita is returning you to the login page because you did not send the correct user or password, see your line
#43

Unable to log in. Please check your username and password.

Did you send the correct credentials? try using a json format like:
{
“username”:“your_username”,
“password”:“your_password”,
“redirect”:false
}

or a query string like:
“username=your_username&password=your_password&redirect=false”

This is working much better with http://@ip:port/bonita/loginservice?username=your_username&password=your_password&redirect=false
I can get the cookie et perform the second call, ie retrieve a task description

Many thanks

I don’t get anything like that if I fail to find anything…

I’m intrigued though why your page is returning a Talend MDM Workflow page rather than a Bonita Workflow page could that be the reason?

regards