Skip to content

Commit

Permalink
chore: fix operate client auth (SaaS)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Dec 27, 2023
1 parent cd1462b commit 61b7516
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package io.camunda.connector.runtime.saas;

import io.camunda.common.auth.Authentication;
import io.camunda.connector.api.secret.SecretProvider;
import io.camunda.operate.CamundaOperateClient;
import io.camunda.zeebe.spring.client.properties.OperateClientConfigurationProperties;
Expand Down Expand Up @@ -49,8 +50,12 @@ public OperatePropertiesPostProcessor operatePropertiesPostProcessor() {
}

@Bean
public CamundaOperateClient camundaOperateClientBundle() {
return CamundaOperateClient.builder().operateUrl(operateUrl).setup().build();
public CamundaOperateClient camundaOperateClientBundle(Authentication authentication) {
return CamundaOperateClient.builder()
.operateUrl(operateUrl)
.authentication(authentication)
.setup()
.build();
}

public class OperatePropertiesPostProcessor implements BeanPostProcessor {
Expand Down

0 comments on commit 61b7516

Please sign in to comment.