When running Camunda locally using c8run, APIs such as the task list API should be accessed using cookie-based authentication (source: doc).
It’s not clear to me if the Camunda 8 javascript SDK actually supports cookie authentication; the documentation only mentions that the java client doesn’t.
I tried using the basic auth config via environment variables, to no avail:
Thank you for your answer. The JS SDK supports basic auth indeed, but my issue is on the Camunda side, not the client.
As far as I understand when running Camunda locally with Camunda 8 run the only supported form of authentication is cookie-based. I’m assuming this based on the fact that the documentation has a section on authentication for the Java client and only cookies are mentioned there.
If that is the case then I need to find a way to send that cookie as a header using the JS client; but it’s not clear that it offers a way to send custom headers.