Skip to content

Commit

Permalink
fix: Fix issue with Crowdstrike credential not working correctly (#9108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom authored and netroy committed Apr 18, 2024
1 parent 856ee18 commit d11ca79
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit d11ca79

Please sign in to comment.