mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 01:14:23 +01:00
Use URL Encoded Form for OAuth2.0 token endpoint (#1701)
OAuth2.0 expects URL encoded form instead of JSON content https://www.oauth.com/oauth2-servers/server-side-apps/example-flow/ Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
This commit is contained in:
parent
858536e13d
commit
cc02794ce9
@ -201,7 +201,8 @@ const configureRequest = async (
|
||||
case 'authorization_code':
|
||||
interpolateVars(requestCopy, envVars, collectionVariables, processEnvVars);
|
||||
const { data: authorizationCodeData, url: authorizationCodeAccessTokenUrl } =
|
||||
await resolveOAuth2AuthorizationCodeAccessToken(requestCopy);
|
||||
await resolveOAuth2AuthorizationCodeAccessToken(requestCopy);
|
||||
request.headers['content-type'] = 'application/x-www-form-urlencoded';
|
||||
request.data = authorizationCodeData;
|
||||
request.url = authorizationCodeAccessTokenUrl;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user