401 unauthorized for /API/platform/licence

1
0
-1

Hi,

I'm using Bonita 7.2.1. I want to access GET|/API/platform/licence rest API. So I call POST|/loginservice with technical user(install) followed by GET|/API/platform/licence but I get 401 unauthorized error.

Please let me know what is missing.

1 answer

1
0
-1

Did you set the cookie given in the response of your first request POST/loginservice?

Comments

Submitted by amit.dhage on Tue, 10/24/2017 - 07:16

Hi,

I'm using Postman REST client to call these services. It is not required to set the cookie explicitly, normally POST/loginservice call sets cookie and then we can call next request. I read the document https://documentation.bonitasoft.com/6.x-7.2/platform-api-861#license and it says, This requires a platform session. Log in using the platformloginservice servlet. Do you have any idea, how to log in using platformloginservice servlet and use the platform session to call GET|/API/platform/licence.

Thank you in advance.

Notifications