Hi @Vipul ,
I tried this official docker-compose file camunda-platform/docker-compose.yaml at main · camunda/camunda-platform · GitHub and it worked for me.
I think it is useful to test the default access first. Maybe you can try my steps and see what happens:
- Start operate with dependencies:
docker-compose up operate
- Make sure every application works, it can take some time until all dependencies (elasticsearch, zeebe, keycloak, Identity, Operate) are ready to use. For that you can take a look at the log files and check the webapps in the browser.
- Zeebe should work: The last log message should be:
io.camunda.zeebe.broker.exporter.elasticsearch - Exporter opened
- Identity should work: Check the webapp at http://localhost:8084
- Operate should work: Check the webapp at http://localhost:8081
- Zeebe should work: The last log message should be:
- Test the default API access for Operate.
- Take the
client_id
,client_secret
from Operate configuration indocker-compose
file:
- CAMUNDA_OPERATE_IDENTITY_CLIENTID=operate - CAMUNDA_OPERATE_IDENTITY_CLIENTSECRET=XALaRPl5qwTEItdwCMiPS62nVpKs7dL7
- Compare with Operate application configuration in Identity webapp. Should be the same.
- Get a token from Identity for Operate application at http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token.
Use theclient_id
andclient_secret
from step 1. - Use this token to access Operate at http://localhost:8081/v1/process-instances/search
- Without permissions a html content with an error message will be returned, with permissions it should return something like:
{ "items": [], "sortValues": [], "total": 0 }
- Take the
- Test with a new created application
- Create a application
- Use the created
client_id
andclient_secret
by Identity in the Operate configuration part of yourdocker-compose
file. Operate needs to know theclient_id
andclient_secret
. - Restart Operate from docker-compose file
- Get a token now with new
client_id
andclient_secret
. - Try to access Operate with new token.
Important:
- if you create an application you need to tell Operate the new
client_id
andclient_secret
. For that update the Operate configuration, in this case in thedocker-compose
file. - if you change permissions you need to get a new token.
I hope this helps.
You can also take a look at this forum question Camunda8 GraphQL API get active tasks list - #8 by valiu which had similar issues.
Best regards,
Ralf