mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-18 02:30:58 +01:00
parent
ae3c76a6c1
commit
e278116356
@ -208,6 +208,7 @@ const configureRequest = async (
|
|||||||
interpolateVars(requestCopy, envVars, collectionVariables, processEnvVars);
|
interpolateVars(requestCopy, envVars, collectionVariables, processEnvVars);
|
||||||
const { data: authorizationCodeData, url: authorizationCodeAccessTokenUrl } =
|
const { data: authorizationCodeData, url: authorizationCodeAccessTokenUrl } =
|
||||||
await resolveOAuth2AuthorizationCodeAccessToken(requestCopy, collectionUid);
|
await resolveOAuth2AuthorizationCodeAccessToken(requestCopy, collectionUid);
|
||||||
|
request.method = 'POST';
|
||||||
request.headers['content-type'] = 'application/x-www-form-urlencoded';
|
request.headers['content-type'] = 'application/x-www-form-urlencoded';
|
||||||
request.data = authorizationCodeData;
|
request.data = authorizationCodeData;
|
||||||
request.url = authorizationCodeAccessTokenUrl;
|
request.url = authorizationCodeAccessTokenUrl;
|
||||||
@ -216,6 +217,7 @@ const configureRequest = async (
|
|||||||
interpolateVars(requestCopy, envVars, collectionVariables, processEnvVars);
|
interpolateVars(requestCopy, envVars, collectionVariables, processEnvVars);
|
||||||
const { data: clientCredentialsData, url: clientCredentialsAccessTokenUrl } =
|
const { data: clientCredentialsData, url: clientCredentialsAccessTokenUrl } =
|
||||||
await transformClientCredentialsRequest(requestCopy);
|
await transformClientCredentialsRequest(requestCopy);
|
||||||
|
request.method = 'POST';
|
||||||
request.data = clientCredentialsData;
|
request.data = clientCredentialsData;
|
||||||
request.url = clientCredentialsAccessTokenUrl;
|
request.url = clientCredentialsAccessTokenUrl;
|
||||||
break;
|
break;
|
||||||
@ -224,6 +226,7 @@ const configureRequest = async (
|
|||||||
const { data: passwordData, url: passwordAccessTokenUrl } = await transformPasswordCredentialsRequest(
|
const { data: passwordData, url: passwordAccessTokenUrl } = await transformPasswordCredentialsRequest(
|
||||||
requestCopy
|
requestCopy
|
||||||
);
|
);
|
||||||
|
request.method = 'POST';
|
||||||
request.data = passwordData;
|
request.data = passwordData;
|
||||||
request.url = passwordAccessTokenUrl;
|
request.url = passwordAccessTokenUrl;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user