Skip to content

Commit

Permalink
Fix OAuth Authorization
Browse files Browse the repository at this point in the history
This edit fix the oAuth issue that raised when changed the POST to use  json_encode instead of http_build_query mautic#216
  • Loading branch information
wise-gorilla authored May 13, 2020
1 parent 36eac9e commit af9bfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Auth/OAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ protected function prepareRequest($url, array $headers, array $parameters, $meth
//OAuth 2.0
$this->log('making request using OAuth2 spec');

$parameters['access_token'] = $this->_access_token;
$headers[] = 'Authorization: Bearer ' . $this->_access_token;
}

return [$headers, $parameters];
Expand Down

1 comment on commit af9bfa1

@benlumley
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!

Please sign in to comment.