How can I interact with Camunda 8 TaskList with springBoot?

HI @nathan.loding

I’m encountering issues with generating bearer tokens for authorization I am running Camunda 8 via Docker. When I attempt to obtain a token using client credentials

curl --location --request POST ‘http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token
–header ‘Content-Type: application/x-www-form-urlencoded’
–data-urlencode ‘client_id=operate’
–data-urlencode 'client_secret=‘XALaRPl5qwTEItdwCMiPS62nVpKs7dL7’
–data-urlencode ‘grant_type=client_credentials’,

and I also i granted the Permissions for read write for Operate API as mentioned in Getting unauthorized error for operate api even if we get the token using keycloak and identity - #8 by Vipul

I initially received an ‘unauthorised_client’ error, but after enabling service accounts for the ‘Operate’ client in Keycloak, I successfully obtained a token.

However, when I tried to access a Camunda API endpoint (http://localhost:8081/v1/process-instances/2251799813685292 ) using this token in the Authorization header with the ‘Bearer’ scheme, I received a ‘401 Unauthorized’ response with no message. I need help troubleshooting this issue.