Skip to content

Commit

Permalink
feat: refactor authentication parameter
Browse files Browse the repository at this point in the history
(cherry picked from commit e35e262)
  • Loading branch information
1nb0und committed Dec 25, 2023
1 parent 11b7d78 commit 3a23cbe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import io.camunda.zeebe.spring.client.testsupport.SpringZeebeTestContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
Expand All @@ -24,10 +25,12 @@ public class OperateClientConfiguration {

private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

@Autowired
Authentication authentication;

@Bean
@ConditionalOnMissingBean
public CamundaOperateClient camundaOperateClient(OperateClientConfigurationProperties props, Authentication authentication) {
public CamundaOperateClient camundaOperateClient(OperateClientConfigurationProperties props) {
LOG.warn("Using a deprecated operate properties");
CamundaOperateClient client;
try {
Expand Down

0 comments on commit 3a23cbe

Please sign in to comment.