Finished adding support for service account JSON auth method for GCP secret manager integration

This commit is contained in:
Tuan Dang
2023-09-04 12:48:15 +01:00
parent d9abe671af
commit 4a603da425
24 changed files with 671 additions and 289 deletions
+4 -3
View File
@@ -7,6 +7,7 @@ import {
setIntegrationAuthRefreshHelper,
} from "../helpers/integration";
import { syncSecretsToActiveIntegrationsQueue } from "../queues/integrations/syncSecretsToThirdPartyServices";
import { IIntegrationAuth } from "../models";
/**
* Class to handle integrations
@@ -102,7 +103,7 @@ class IntegrationService {
}: {
integrationAuthId: string;
refreshToken: string;
}) {
}): Promise<IIntegrationAuth> {
return await setIntegrationAuthRefreshHelper({
integrationAuthId,
refreshToken,
@@ -127,8 +128,8 @@ class IntegrationService {
accessExpiresAt,
}: {
integrationAuthId: string;
accessId: string | null;
accessToken: string;
accessId?: string;
accessToken?: string;
accessExpiresAt: Date | undefined;
}) {
return await setIntegrationAuthAccessHelper({