You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/07/09 11:46:23 UTC

(camel) branch main updated: CAMEL-23974: Pass OAuth credentials from ZeebeComponent to ZeebeService

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 4383a38986a5 CAMEL-23974: Pass OAuth credentials from ZeebeComponent to ZeebeService
4383a38986a5 is described below

commit 4383a38986a5408e1d016821c2d0d4c2df914386
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jul 9 13:46:17 2026 +0200

    CAMEL-23974: Pass OAuth credentials from ZeebeComponent to ZeebeService
    
    Fix silent OAuth authentication failure in camel-zeebe where clientId,
    clientSecret, and oAuthAPI configured on ZeebeComponent were never passed
    to ZeebeService, making the OAuth code path unreachable dead code.
    
    Closes #24557
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
 .../main/java/org/apache/camel/component/zeebe/ZeebeComponent.java | 2 +-
 .../org/apache/camel/component/zeebe/internal/ZeebeService.java    | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/ZeebeComponent.java b/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/ZeebeComponent.java
index 3aea39c0d268..473d6edb1d0a 100644
--- a/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/ZeebeComponent.java
+++ b/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/ZeebeComponent.java
@@ -118,7 +118,7 @@ public class ZeebeComponent extends DefaultComponent {
         super.doStart();
 
         if (zeebeService == null) {
-            zeebeService = new ZeebeService(gatewayHost, gatewayPort);
+            zeebeService = new ZeebeService(gatewayHost, gatewayPort, clientId, clientSecret, oAuthAPI);
             zeebeService.doStart();
         }
     }
diff --git a/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/internal/ZeebeService.java b/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/internal/ZeebeService.java
index 2a128bb336a7..7af75c65c535 100644
--- a/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/internal/ZeebeService.java
+++ b/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/internal/ZeebeService.java
@@ -62,8 +62,15 @@ public class ZeebeService {
     private String oAuthAPI;
 
     public ZeebeService(String gatewayHost, int gatewayPort) {
+        this(gatewayHost, gatewayPort, null, null, null);
+    }
+
+    public ZeebeService(String gatewayHost, int gatewayPort, String clientId, String clientSecret, String oAuthAPI) {
         this.gatewayHost = gatewayHost;
         this.gatewayPort = gatewayPort;
+        this.clientId = clientId;
+        this.clientSecret = clientSecret;
+        this.oAuthAPI = oAuthAPI;
 
         objectMapper = new ObjectMapper();
     }