how to send username and password in other Reset API request?

1
0
-1

i sent username and password in url like
http://localhost:8080/bonita/loginservice?username=xxx&password=xxx

get

then i get logged in

the other request is
http://localhost:8080/bonita/API/bpm/case/

post

so i need to send only one request

i.e
http://localhost:8080/bonita/API/bpm/case?username=xxx&password=xxx

not send two requests

1 answer

1
0
-1

The first thing is
http://localhost:8080/bonita/loginservice?username=xxx&password=xxx

doesn't work so you can't be doing it right.

I've checked. Your data MUST be written as part of the form data. Try it with Chrome Advanced REST and you will see.

After that all other requests can be made accordingly.

Login and Logout are separated from every other call for security reasons...

regards
Seán

PS: While you may not like the answer, it does answer your query, please mark as resolved.

Comments

Submitted by samehisthebest on Wed, 01/11/2017 - 09:17

you mean that no way to send login data in other reset api request

Submitted by Sean McP on Wed, 01/11/2017 - 10:12

Correct, the system is designed this way, on purpose, for security.

Please read the REST documentation here , the overview specifically talks about authentication

regards

Notifications