Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue regarding params in the OAuth\Client::getToken() method d…

…epending on which method is used to retrieve tokens and updated guzzle
  • Loading branch information...
commit c1325444d7b6c92c0d7a53dedcf86496ad63cde6 1 parent b26ac39
Félix Bellanger authored
Showing with 3 additions and 5 deletions.
  1. +1 −1  composer.json
  2. +1 −3 src/OAuth2/Client.php
  3. +1 −1  vendor/guzzle
2  composer.json
View
@@ -4,7 +4,7 @@
, "description": "A library to consume services using the OAuth 2 security scheme."
, "keywords": ["oauth2"]
, "homepage": "https://github.com/Keeguon/oauth2-php"
- , "version": "1.1.3"
+ , "version": "1.1.4"
, "license": "MIT"
, "authors": [
{
4 src/OAuth2/Client.php
View
@@ -160,11 +160,9 @@ public function getToken($params = array(), $tokenOpts = array())
);
unset($params['parse']);
+ $opts['params'] = $params;
if ($this->options['token_method'] === 'POST') {
- $opts['params'] = $params;
$opts['headers'] = array('Content-Type' => 'x-www-form-urlencoded');
- } else {
- $opts['params'] = http_build_query($params);
}
// Make request
2  vendor/guzzle
@@ -1 +1 @@
-Subproject commit 13ea2e723eaba72d99eefb24ec36f95ff7ef0068
+Subproject commit 6cf372f928b183fe2bfbc5c56f75abc75cfff509
Please sign in to comment.
Something went wrong with that request. Please try again.