Skip to content

Commit

Permalink
fix: camunda self managed oauth not connecting
Browse files Browse the repository at this point in the history
issue arises in stage env due to missing audience config https://camunda.slack.com/archives/C0693F1NFK5/p1740732406983989

stage env: https://ultrawombat.com/

Closes #4871
  • Loading branch information
abdul99ahad authored and nikku committed Mar 5, 2025
1 parent 8e0ddaa commit 4eebc82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/lib/zeebe-api/zeebe-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,15 @@ class ZeebeAPI {
ZEEBE_CLIENT_SECRET: endpoint.clientSecret,
CAMUNDA_OAUTH_URL: endpoint.oauthURL,
CAMUNDA_TOKEN_SCOPE: endpoint.scope,
CAMUNDA_CONSOLE_OAUTH_AUDIENCE: endpoint.audience,
CAMUNDA_ZEEBE_OAUTH_AUDIENCE: endpoint.audience,
CAMUNDA_TOKEN_DISK_CACHE_DISABLE: true
};
} else if (type === ENDPOINT_TYPES.CAMUNDA_CLOUD) {
options = {
...options,
CAMUNDA_AUTH_STRATEGY: 'OAUTH',
CAMUNDA_OAUTH_URL: 'https://login.cloud.camunda.io/oauth/token',
CAMUNDA_CONSOLE_OAUTH_AUDIENCE: endpoint.audience,
CAMUNDA_ZEEBE_OAUTH_AUDIENCE: endpoint.audience,
CAMUNDA_TOKEN_SCOPE: endpoint.scope,
ZEEBE_CLIENT_ID: endpoint.clientId,
ZEEBE_CLIENT_SECRET: endpoint.clientSecret,
Expand Down
4 changes: 2 additions & 2 deletions app/test/spec/zeebe-api/zeebe-api-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ describe('ZeebeAPI', function() {

expect(config).to.include.keys({
CAMUNDA_AUTH_STRATEGY: 'OAUTH',
CAMUNDA_CONSOLE_OAUTH_AUDIENCE: 'audience',
CAMUNDA_ZEEBE_OAUTH_AUDIENCE: 'audience',
ZEEBE_CLIENT_ID: 'clientId',
ZEEBE_CLIENT_SECRET: 'clientSecret',
CAMUNDA_TOKEN_SCOPE: 'scope',
Expand Down Expand Up @@ -2363,7 +2363,7 @@ describe('ZeebeAPI', function() {
CAMUNDA_TOKEN_SCOPE: 'scope',
ZEEBE_CLIENT_ID: 'clientId',
ZEEBE_CLIENT_SECRET: '******',
CAMUNDA_CONSOLE_OAUTH_AUDIENCE: 'audience',
CAMUNDA_ZEEBE_OAUTH_AUDIENCE: 'audience',
CAMUNDA_OAUTH_URL: 'oauthURL',
CAMUNDA_SECURE_CONNECTION: false
}
Expand Down

0 comments on commit 4eebc82

Please sign in to comment.