From d11ca79adbaf7cba86213723be92b7da769c89f5 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 16 Apr 2024 08:39:22 +0100 Subject: [PATCH] fix: Fix issue with Crowdstrike credential not working correctly (#9108) --- .../credentials/CrowdStrikeOAuth2Api.credentials.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nodes-base/credentials/CrowdStrikeOAuth2Api.credentials.ts b/packages/nodes-base/credentials/CrowdStrikeOAuth2Api.credentials.ts index ca2aec474dec7..ccf20224477a2 100644 --- a/packages/nodes-base/credentials/CrowdStrikeOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/CrowdStrikeOAuth2Api.credentials.ts @@ -63,9 +63,11 @@ export class CrowdStrikeOAuth2Api implements ICredentialType { const url = credentials.url as string; const { access_token } = (await this.helpers.httpRequest({ method: 'POST', - url: `${url.endsWith('/') ? url.slice(0, -1) : url}/oauth2/token?client_id=${ - credentials.clientId - }&client_secret=${credentials.clientSecret}`, + url: `${url.endsWith('/') ? url.slice(0, -1) : url}/oauth2/token`, + body: { + client_id: credentials.clientId, + client_secret: credentials.clientSecret, + }, headers: { 'Content-Type': 'application/x-www-form-urlencoded', },