pass client creds in request body as well
This commit is contained in:
parent
a4d5e589e6
commit
809f2a9735
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user