mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Fix issue with Crowdstrike credential not working correctly (#9108)
This commit is contained in:
@@ -63,9 +63,11 @@ export class CrowdStrikeOAuth2Api implements ICredentialType {
|
|||||||
const url = credentials.url as string;
|
const url = credentials.url as string;
|
||||||
const { access_token } = (await this.helpers.httpRequest({
|
const { access_token } = (await this.helpers.httpRequest({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: `${url.endsWith('/') ? url.slice(0, -1) : url}/oauth2/token?client_id=${
|
url: `${url.endsWith('/') ? url.slice(0, -1) : url}/oauth2/token`,
|
||||||
credentials.clientId
|
body: {
|
||||||
}&client_secret=${credentials.clientSecret}`,
|
client_id: credentials.clientId,
|
||||||
|
client_secret: credentials.clientSecret,
|
||||||
|
},
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user