Cannot get a token for Camunda self-managed while using the javascript SDK demo

I’m new to Camunda and I am trying to run Zeebe on my local machine. I user the tutorial for setting up a k8s cluster on my machine and it seems to be working properly.
I went on and cloned this demo: GitHub - camunda-community-hub/c8-sdk-demo: Demo of the Node.js Camunda 8 SDK
I followed the instaructions and set up the enviroment variables:

export ZEEBE_ADDRESS='localhost:26500'
export ZEEBE_CLIENT_ID='zeebe'
export ZEEBE_CLIENT_SECRET='zecret'
export CAMUNDA_OAUTH_URL='http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token'
export CAMUNDA_TASKLIST_BASE_URL='http://localhost:8082'
export CAMUNDA_OPERATE_BASE_URL='http://localhost:8081'
export CAMUNDA_OPTIMIZE_BASE_URL='http://localhost:8083'
export CAMUNDA_MODELER_BASE_URL='http://localhost:8070/api'

However when I try to run it I am getting Erroring requesting token for Client Id zeebe

I disabled authentication via the helm chart so I don’t understand why is it requiring a token and if so what credentials should I use

Hi @itay_klein, welcome to the forums! If you disabled authentication, then you shouldn’t be using the OAUTH_URL parameter, as that is expecting Identity and full authentication. Depending on how you’ve configured your cluster, follow the instructions found in the JS SDK README here: GitHub - camunda/camunda-8-js-sdk: The Camunda 8 JavaScript SDK for Node.js (link goes to the authentication section).

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.