We are working on automating Micro Focus ALM tool using Blue Prism (version-7.0.1) in Azure environment.
We are trying to use the API's and we are able to successfully sign in using the HTTP request URL:""http://SERVER:PORT_NUMBER/qcbin/api/authentication/sign-in""
as a response we are getting the result as "Headers as JSON". Mainly we are getting 4 parameters: 1.LWSSO_COOKIE_KEY 2.QCSession 3.ALM_USER 4.XSRF-TOKEN
Issue is:
After login, 2nd request is to check any entity(Ex: Requirements ,Test_cases or Defects) by passing the above mentioned parameters in HEADERS. When I make the 2nd request, I am getting 401 error. Result: The remote server returned an error: (401) Unauthorized.
I have tried to enter parameters manually and it has not worked that way too. But it works very fine in POSTMAN
Please guide or let me know how to troubleshoot the issue
According to the MicroFocus documentation, the token header should be givne the name X-XSRF-TOKEN. Is that how you're entering it in your subsequent requests?