Dear experts,
I've got a question about using the BPM API's, either the java api or the REST api.
In the Java as well as the REST api, it is required to specify the credentials of the user when either making a REST call or when preparing the java class that includes the API method call.
My question is, in a real-life application, how do I pass such information?
I highly doubt that they are hard-coded into the call. I have the following situation:
I am creating an application, with a Javascript front-end, say, React JS, and I would like to use the BPM REST api to make significant calls such as getting the task list of a specific user.
To make that call, I would require to place the username and password in my api call header. However I am looking for the best way to do this as I am really not convinced on how to include explicit credentials in my service call, knowing that the parameters of these service calls, the said username and password, need to be dynamic and correspond to whoever is logged into the application.
I would greatly appreciate any hints on how this is done as I no clear idea how to achieve this.
Thanks in advance,
Regards,
Middleware version: 12.2.1.3