Call rest api failed with HTTP Status 401

I tried to use keycloak as user authentication(SSO) and build docker image as instructed by GitHub - iceman91176/camunda-bpm-auth-keycloak-sso.

When i call rest api like http://{camunda host}/engine-rest/job and will get from http://{keycloak host}/auth/realms/{client id}/protocol/openid-connect/token The access_token is added to the header. It returns HTTP Status 401 - Unauthorized. What am I doing wrong or need to be adjusted?

Have you looked at this post or this repo yet? Those might help you out with this issue.

If you could post some more detailed information about your configuration, and what you’ve already tried, etc. I can see if I can help further.

Best Regards,
dg

1 Like

Thank you. It works.