From 3ec7af90c25aa08490758d8b8c6f8052e6a4257e Mon Sep 17 00:00:00 2001 From: markfarkas-camunda Date: Tue, 4 Apr 2023 13:51:32 +0200 Subject: [PATCH] fix: add auth url, and audience to SaasAuthentication creation --- .github/workflows/RELEASE.yaml | 4 ++-- .../connector/runtime/SaaSOperateClientFactory.java | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/RELEASE.yaml b/.github/workflows/RELEASE.yaml index ff9625cafc..481ce79567 100644 --- a/.github/workflows/RELEASE.yaml +++ b/.github/workflows/RELEASE.yaml @@ -142,7 +142,7 @@ jobs: uses: docker/build-push-action@v4 with: context: bundle/mvn/default-bundle/ - push: ${{ github.ref == 'refs/heads/main' }} + push: true #${{ github.ref == 'refs/heads/main' }} tags: camunda/connectors-bundle:${{ github.event.inputs.version }} platforms: linux/amd64,linux/arm64 provenance: false @@ -151,7 +151,7 @@ jobs: uses: docker/build-push-action@v4 with: context: bundle/mvn/camunda-saas-bundle/ - push: ${{ github.ref == 'refs/heads/main' }} + push: true #${{ github.ref == 'refs/heads/main' }} tags: camunda/connectors-bundle-saas:${{ github.event.inputs.version }} platforms: linux/amd64,linux/arm64 provenance: false diff --git a/bundle/mvn/camunda-saas-bundle/src/main/java/io/camunda/connector/runtime/SaaSOperateClientFactory.java b/bundle/mvn/camunda-saas-bundle/src/main/java/io/camunda/connector/runtime/SaaSOperateClientFactory.java index 65a2f963c6..37a525c7ca 100644 --- a/bundle/mvn/camunda-saas-bundle/src/main/java/io/camunda/connector/runtime/SaaSOperateClientFactory.java +++ b/bundle/mvn/camunda-saas-bundle/src/main/java/io/camunda/connector/runtime/SaaSOperateClientFactory.java @@ -52,7 +52,12 @@ public CamundaOperateClient camundaOperateClientBundle( String operateClientSecret = internalSecretProvider.getSecret(SECRET_NAME_SECRET); return new CamundaOperateClient.Builder() .operateUrl(properties.getOperateUrl()) - .authentication(new SaasAuthentication(operateClientId, operateClientSecret)) + .authentication( + new SaasAuthentication( + properties.getAuthUrl(), + properties.getAudience(), + operateClientId, + operateClientSecret)) .build(); } }