Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
guzzle-oauth2-subscriber
====================

Provides an OAuth2 subscriber for [Guzzle](http://guzzlephp.org/) 4.x.
Provides an OAuth2 subscriber for [Guzzle](http://guzzlephp.org/) 4.x and 5.x.

# Attribution #
-----------
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "kamermans/guzzle4-oauth2-subscriber",
"description": "OAuth2 authentication and reauthorization for Guzzle 4.x",
"keywords": ["oauth", "guzzle", "oauth2", "guzzle4", "provider", "subscriber"],
"description": "OAuth2 authentication and reauthorization for Guzzle 4.x and 5.x",
"keywords": ["oauth", "guzzle", "oauth2", "guzzle4", "guzzle5", "provider", "subscriber"],
"license": "MIT",
"require": {
"php": ">=5.4.0",
"ext-json": "*",
"guzzlehttp/guzzle": "4.*"
"guzzlehttp/guzzle": "4.* | 5.*"
},
"autoload": {
"psr-0": {
Expand Down
2 changes: 1 addition & 1 deletion src/kamermans/GuzzleOAuth2/GrantType/AuthorizationCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getTokenData(SignerInterface $clientCredentialsSigner)
}

$request = $this->client->createRequest('POST', null);
$request->setBody(Utils::arrayToPostBody($this->config));
$request->setBody(Utils::arrayToPostBody(new Collection($postBody)));
$clientCredentialsSigner->sign(
$request,
$this->config['client_id'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getTokenData(SignerInterface $clientCredentialsSigner)
}

$request = $this->client->createRequest('POST', null);
$request->setBody(Utils::arrayToPostBody($this->config));
$request->setBody(Utils::arrayToPostBody(new Collection($postBody)));
$clientCredentialsSigner->sign(
$request,
$this->config['client_id'],
Expand Down
2 changes: 1 addition & 1 deletion src/kamermans/GuzzleOAuth2/GrantType/RefreshToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getTokenData(SignerInterface $clientCredentialsSigner, $refreshT
}

$request = $this->client->createRequest('POST', null);
$request->setBody(Utils::arrayToPostBody($this->config));
$request->setBody(Utils::arrayToPostBody(new Collection($postBody)));
$clientCredentialsSigner->sign(
$request,
$this->config['client_id'],
Expand Down