This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.18.x by this push:
new 957cacca023d CAMEL-23974: Pass OAuth credentials from ZeebeComponent
to ZeebeService
957cacca023d is described below
commit 957cacca023d6722d9a403c2b57a3bcadb9b77a5
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jul 9 15:17:19 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 #24560
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
.../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 d208816eaeca..79daf4fd0e43 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
@@ -116,7 +116,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 5f331a8c0bf7..c1e3bb97e1b2 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
@@ -61,8 +61,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();
}