1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-19 17:07:18 +03:00

fix: Fix issue with Crowdstrike credential not working correctly (#9108)

This commit is contained in:
Jon 2024-04-16 08:39:22 +01:00 committed by GitHub
parent f1215cdb6b
commit 4c16000efa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',
},