Skip to content

Commit

Permalink
fix: disable default operate client bean creation
Browse files Browse the repository at this point in the history
  • Loading branch information
markfarkas-camunda committed Apr 5, 2023
1 parent 7a411a2 commit 167fbd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;

@Configuration
@Primary
@ConditionalOnProperty(value = "operate.client.enabled", havingValue = "true")
@Profile("!dev")
@EnableConfigurationProperties(OperateClientConfigurationProperties.class)
public class SaaSOperateClientFactory {

private static final Logger LOG = LoggerFactory.getLogger(SaaSOperateClientFactory.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ camunda.connector.auth.issuer=https://weblogin.cloud.dev.ultrawombat.com/
# Enforce local connection, even if cluster-id set (for Operate Auth)
zeebe.client.connection-mode=ADDRESS

# Enable operate client and secret provider initialization
operate.client.enabled=true
# Enable operate client and secret provider initialization. Must be disabled (set to false) to avoid creating the default operate client bean.
operate.client.enabled=false

0 comments on commit 167fbd5

Please sign in to comment.