From e0f49d514a68d8325c2988268f6bda19bca0e16a Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Mon, 15 Apr 2024 16:00:58 +0200 Subject: [PATCH] fix: pass URL correctly --- app/lib/zeebe-api/zeebe-api.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/lib/zeebe-api/zeebe-api.js b/app/lib/zeebe-api/zeebe-api.js index 4bc259c39a..c07190d054 100644 --- a/app/lib/zeebe-api/zeebe-api.js +++ b/app/lib/zeebe-api/zeebe-api.js @@ -351,7 +351,7 @@ class ZeebeAPI { } else if (authType === AUTH_TYPES.OAUTH) { options = { ...options, - ZEEBE_ADDRESS: endpoint.oauthURL, + ZEEBE_ADDRESS: endpoint.url, CAMUNDA_ZEEBE_OAUTH_AUDIENCE: endpoint.audience, CAMUNDA_TOKEN_SCOPE: endpoint.scope, CAMUNDA_ZEEBE_CLIENT_ID: endpoint.clientId, @@ -369,6 +369,11 @@ class ZeebeAPI { CAMUNDA_TOKEN_DISK_CACHE_DISABLE: true, CAMUNDA_SECURE_CONNECTION: true }; + } else if (type === ENDPOINT_TYPES.SELF_HOSTED) { + options = { + ...options, + ZEEBE_ADDRESS: endpoint.url + }; } options = await this._withTLSConfig(url, options);