Camunda apps + REST + BasicAuth is it possible?

Hello

I’m using camunda-bpm-spring-boot-starter-webapp

I woud like to know if this application exposes REST endpoints

If yes what is the the base URL to access the endpoints ?

How can a program authenticate itself to camunda to gain access to the endpoints ?

Is it possible to protect the rest endpoints with Basic auth only ?

If I try https://localhost:9443/engine-rest/engine/engine/default/user
I get a 404

If I try https://localhost:9443/api/engine/engine/default/user/
I get a 401 even though I’ve added the basic authentication filter to my config

Regards

The webapp comes with its own, secured, REST endpoints. However, if you want to use a public REST API, you should add the starter-rest dependency, which gives you access to the full camunda REST API under /rest.
You can leave it open or secure it anyway you like.

Thanks for your feedback
I’ve managed to make it work with the 2 following artifactIds
camunda-bpm-spring-boot-starter-webapp
camunda-bpm-spring-boot-starter-rest
and adding HttpBasicAuthenticationProvider filter on /rest/*
I can now access the rest API on /rest/engine/default/user

1 Like