oauth2-client/src
Alexandru Guzinschi cb300f7b6c [Fix] Invalid JSON in response trigger fatal error
If the server responded with an invalid JSON for `getAccessToken()`,
$result variable will be of type string instead of expected array.
This will result in a fatal error was being raised in AbstractProvider
when calling `prepareAccessTokenResult` method, which expects an
argument of type array.

Proposed solution is to set the variable `$result` to an empty array if
json_decode was not successful.

Doesn't make sense to throw an expection at this point, because response
will not have an access_token and an `InvalidArgumentException` will be
thrown latter when `$grant->handleResponse()` will be called.

Fix #230
2015-03-11 13:44:02 +02:00
..
Entity CS fixes 2014-11-08 21:30:40 +00:00
Exception Merge branch 'geofflancaster-patch' into geofflancaster-idpexception-empty-strings 2015-03-10 16:01:48 -05:00
Grant Merge pull request #158 from GrahamCampbell/cs 2014-11-27 17:01:33 -05:00
Provider [Fix] Invalid JSON in response trigger fatal error 2015-03-11 13:44:02 +02:00
Token remove custom provider code from AccessToken 2015-02-23 12:15:25 -06:00