I want to consume the Springbot API from a 3rd party app, e.g. VBA Excel. I have logged in and able to read cookies from the response object. However, I always get a 401 error on the subsequent request (e.g. call get method of the patient controller).
To simulate this problem, I do the following:
- I logged in successfully via a web browser.
- I open Postman but do not call the auth/login endpoint. From the response that I have in step 1, I try calling a patient API, pass all the cookies to the header, but I always get a 401 error.
What parameters should I pass to the request?