Skip to content

Commit

Permalink
fix: pass URL correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Apr 15, 2024
1 parent c85c759 commit d3f48f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/lib/zeebe-api/zeebe-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class ZeebeAPI {
if (type === ENDPOINT_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,
Expand All @@ -340,6 +340,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);
Expand Down

0 comments on commit d3f48f6

Please sign in to comment.