camunda-community-hub/camunda-tasklist-client-java

Product class does not have member field 'io.camunda.common.auth.Product TASKLIST'

Closed this issue · 0 comments

I'm trying to set Self-Managed authentication for getting the list of tasks using this library. Here is the part of my code:

public CamundaTaskListClient getTaskListClient() {
     JwtConfig jwtConfig = new JwtConfig();
        jwtConfig.addProduct(Product. TASKLIST, new JwtCredential(
            "client-id-here", "client-secret-here", null, null)
        );
        Authentication auth = SelfManagedAuthentication.builder()
            .withJwtConfig(jwtConfig)
            .build();

        return CamundaTaskListClient.builder()
            .taskListUrl("http://localhost:8082")
            .shouldReturnVariables()
            .shouldLoadTruncatedVariables()
            .authentication(auth)
            .build();
}

The issue here is that class Product.TASKLIST not exists. Any thoughts?