pass client creds in request body as well

This commit is contained in:
Dave Kerr 2025-05-07 09:13:09 -04:00
parent a4d5e589e6
commit 809f2a9735

View File

@ -149,6 +149,8 @@ async function acquireOAuth2Token(schemeName: string, scheme: any): Promise<stri
// Prepare the token request
let formData = new URLSearchParams();
formData.append('grant_type', 'client_credentials');
formData.append('client_id', clientId);
formData.append('client_secret', clientSecret);
// Add scopes if specified
if (scopes) {