cancel
Showing results for 
Search instead for 
Did you mean: 

disable activiti 6.0 authentication

suganthi_elumal
Champ in-the-making
Champ in-the-making

Hi,

we are using Activiti 6.0.0 and developed a case management application. For usertasks, we created another second service, which in turn calls runtime/tasks/taskid, post method to complete the user tasks, but when the second service tries to hit the url, https://localhost:8100/runtime/tasks/taskid post method, it asks for authentication, so it gives 401,

We use our oracle db, for acitiviti tables, instead of inbuild h2 db. when we hit the post url with credentials admin/admin in the headers, it works, but we do not want the basic authentication in 6.0.0.

I tried disabling through, @EnableAutoConfiguration(exclude = {
        org.activiti.spring.boot.RestApiAutoConfiguration.class,
        org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration.class,
        org.activiti.spring.boot.SecurityAutoConfiguration.class}) but it didnt work for 6.0, 

Kindly help us to avoid this authentication. Thanks in advance.

-Suganthi

3 REPLIES 3

dvuika
Star Collaborator
Star Collaborator

How that relates to ADF forum?

eugenio_romano
Elite Collaborator
Elite Collaborator

I moved it in the activiti channel

ryandawson
Elite Collaborator
Elite Collaborator

Maybe https://community.alfresco.com/thread/224851-disable-activiti-spring-rest-api-basic-authentication#c...  will be of help - I'm guessing you followed the comment earlier up in that thread. Perhaps you could share what behaviour you see. I'm assuming you're using boot 1.x. The source code for the 6.x autoconfiguration classes is at Activiti/modules/activiti-spring-boot/spring-boot-starters/activiti-spring-boot-starter-basic/src/ma...  if this helps.