Refused to deploy workflow through camunda moduler

I integrated camunda with my spring project and I am trying to deploy a workflow through Camunda Moduler.

but the problem is that I can not deploy it. As I know the Authentication is disabled by default, but I keep getting asked for HTTP basic. I tryed to deploy it through postman and it works fine without any authentication. but I would like to deploy it with Camunda Moduler.
So I decided to add an authentication so I can deploy it with Camunda Moduler.

here is my code in configuration class

public class EngineConfiguration  {
	private final static Logger logger = LoggerFactory.getLogger(EngineConfiguration.class);

	private DataSource dataSource;

	private PlatformTransactionManager transactionManager;

	private ResourcePatternResolver resourceResolver;
	private IdentityService identityService;
	@Value(value = "${workflowEngine.jobExecutorActivate:true}")
	private boolean jobExecutorActivate;

	public SpringProcessEngineConfiguration getProcessEngineConfiguration() {
		SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();
		config.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);  // Always check and update"Camunda DatabaseSchemaUpdate: " + config.getDatabaseSchemaUpdate());
		try {
		} catch (IOException e) {
			logger.error("Failed to load bpmn files", e);
			throw new RuntimeException(e);

		return config;

	@Bean(destroyMethod = "destroy")
	public ProcessEngineFactoryBean processEngineFactory() {
		ProcessEngineFactoryBean processEngineFactoryBean = new ProcessEngineFactoryBean();
		return processEngineFactoryBean;

	public ProcessEngine processEngine() {
		try {
			return processEngineFactory().getObject();
		} catch (Exception e) {
			throw new RuntimeException(e);
	public RuntimeService getRuntimeService() {
		return processEngine().getRuntimeService();

	public AuthorizationService getAuthorizationService() {
		return processEngine().getAuthorizationService();

	public FormService getFormService() {
		return processEngine().getFormService();

	public HistoryService getHistoryService() {
		return processEngine().getHistoryService();

	public IdentityService getIdentityService() {
		return processEngine().getIdentityService();

	public ManagementService getManagementService() {
		return processEngine().getManagementService();

	public RepositoryService getRepositoryService() {
		return processEngine().getRepositoryService();

	public TaskService getTaskService() {
		return processEngine().getTaskService();
	  public FilterRegistrationBean<Filter> processEngineAuthenticationFilter() {
	    FilterRegistrationBean<Filter> registration = new FilterRegistrationBean<>();
	    Filter myFilter = new ProcessEngineAuthenticationFilter();
	    return registration;

My username and password for Camunda Webapp is “demo”. I tryed to test that by calling this http://localhost:8080/engine-rest/default/user but I got this error “status”:401,“error”:“Unauthorized”,“message”:"No authorized session found ".

so can you help me please what am I missing or what should I do so the Authentication works and I can deploy my workflow through camunda moduler?

Can you descrive more about you Camunda setup?
How you built the project, the version of Camunda you’re using.
Also uploading your Pom file and your application.yaml would also help

Hey Niall,
Thank you for your responed. Actually its a big project but we are using Gradle Project. Camunda’s version is 7.13.0. and thats my Dependecies

dependencies {

	// Camunda
	compile group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter', version: '7.13.0'
	compile group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter-test', version: '7.13.0'
	compile group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter-rest', version: '7.13.0'
	compile group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter-webapp', version: '7.13.0'

because the project and Camunda webapp using localhost:8080, I added this line camunda.bpm.webapp.index-redirect-enabled=false in the file so I can use both of them. now I can open camund webapp through this link http://localhost:8080/camunda/app/welcome/default/#!/login

in the ymal file there is only this lines

# ----------------------------------
# ----------------------------------

        url: jdbc:mysql://localhost/DB_dev?serverTimezone=UTC&nullCatalogMeansCurrent=true
        username: test
        password: test
        maxWait: 30000
        maxPoolSize: 8
        defaultAutoCommit: false
        driverClassName: com.mysql.cj.jdbc.Driver
        testOnBorrow: true
        validationQuery: SELECT 1

   createSchema: false
 # servlet:
  #  context-path: /camunda
  id: demo
  password: demo

I hope it helps what I have said.

Have you got spring secturity added by any chance?
Also - have you made sure that the version of Camunda matches with the version of Spring boot? There’s a compatibility matrix you could take a look at

yeah we have JWT. and yes camunda version is matching with camunda spring boot starter. they are 7.13.0

For JWT authentication, you should select Bearer token and paste your token to the input.

1 Like

I have tryed that before but it did not work. what I dont understand even if I am not having an authentication, Camunda modeler is going to ask me after the authentication but if I used postman its going to work fine without any authentication.