Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: update the verify on app connection since the previous endpoint required more permissions to be defined

adilsonc17ff7221d10
diff --git a/backend/src/services/app-connection/cloudflare/cloudflare-connection-fns.ts b/backend/src/services/app-connection/cloudflare/cloudflare-connection-fns.ts
index 3d4dc71b89..f8eb89ca18 100644
--- a/backend/src/services/app-connection/cloudflare/cloudflare-connection-fns.ts
+++ b/backend/src/services/app-connection/cloudflare/cloudflare-connection-fns.ts
@@ -217,9 +217,12 @@ export const validateCloudflareConnectionCredentials = async (config: TCloudflar
const { apiToken, accountId } = config.credentials;
try {
- const resp = await safeRequest.get(`${IntegrationUrls.CLOUDFLARE_API_URL}/client/v4/accounts/${accountId}`, {
- headers: getCloudflareAuthHeaders(apiToken)
- });
+ const resp = await safeRequest.get(
+ `${IntegrationUrls.CLOUDFLARE_API_URL}/client/v4/accounts/${accountId}/tokens/verify`,
+ {
+ headers: getCloudflareAuthHeaders(apiToken)
+ }
+ );
if (resp.data === null) {
throw new BadRequestError({