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
Woody Gilk
f156dd905f
update providers and tests
2015-03-10 15:50:53 -05:00
Woody Gilk
844df96de4
add ProviderInterface::getHeaders() for making authenticated requests
2015-03-10 15:50:53 -05:00
Ben Ramsey
021023f642
Merge pull request #226 from shadowhand/overload-access-token-response
...
Add additional method for modifying token response
2015-02-24 10:34:43 -06:00
Woody Gilk
4d2e8d5669
add AbstractProvider::prepareAccessTokenResult for additional token response prep
2015-02-23 12:23:37 -06:00
Woody Gilk
7446829c3b
replace custom code in AccessToken with Vkontakte::$uidKey
2015-02-23 12:14:37 -06:00
Ben Ramsey
bb2d4e4be7
Merge pull request #220 from jasonvarga/master
...
Allow approval_prompt to be set through options
2015-02-12 12:10:16 -05:00
Jason Varga
7ec9bf717f
Remove Dropbox Provider
...
This will be moved to its own package
2015-02-12 11:49:01 -05:00
Daniel Olfelt
c88b91dcda
Get reliable body response on error.
2015-02-05 15:52:06 -06:00
Ben Ramsey
2a728475d0
Merge pull request #210 from SammyK/update-facebook-scope
...
Upgrade Facebook provider to Graph v2.2
2015-02-03 18:06:22 -06:00
Ben Ramsey
362b2f9cab
Merge pull request #207 from AnduAanei/Google_access_type
...
Add support for specifying the access_type parameter for Google OAuth
2015-02-03 09:35:01 -06:00
Jason Varga
823774bf6e
Dropbox provider
2015-01-29 09:08:48 -05:00
Jason Varga
c918e21cdb
Allow approval_prompt to be set through options
2015-01-29 09:07:56 -05:00
SammyK
ebcb1b9abd
Upgrade Facebook provider to Graph v2.2
2015-01-26 12:22:17 -06:00
Rachman Chavik
ffef5ea630
Fix regression for Github provider
...
Closes #197
Ref: https://github.com/thephpleague/oauth2-client/issues/197#issuecomment-69527969
2015-01-26 22:11:43 +07:00
Andu
3afc1f9a05
Add docblock for the access_type variable in the Google provider
2015-01-20 14:11:23 +00:00
Andu
6e6f1d46db
Add access_type parameter for Google authorization url
2015-01-20 12:31:49 +00:00
Rob Strong
3f442b1b74
id was not being returned by Google
2014-12-30 17:24:54 -05:00
jeremykendall
831f329e1c
Updates urlEmailEquals for use with Github Enterprise
...
See #188 .
2014-12-29 04:18:33 -06:00
jeremykendall
f3d6724d6c
Updates string comparison to use identical operator
2014-12-29 04:18:12 -06:00
jeremykendall
8c0ae57065
Adds methods that fetch a Github user's email addresses.
2014-12-29 04:10:56 -06:00
jeremykendall
0d25e02de7
Adds AbstractProvider::fetchProviderData().
...
New protected method is responsible for making the request to a
provided URL, allowing for multiple API endpoints to be used within the same
provider.
AbstractProvider::fetchUserDetails() remains, but now only builds the
user details URL and passes it to AbstractProvider::fetchProviderData().
2014-12-29 04:08:16 -06:00
Ben Ramsey
a3fd10e9cf
Merge pull request #187 from geofflancaster/master
...
update google scopes and endpoint to remove deprecated values
2014-12-29 05:01:03 -05:00
Sergio Vera
65810afe06
Added support for Github Enterprise
2014-12-23 16:16:50 +01:00
Geoff Lancaster
5952f5d8f5
updated spaces
2014-12-21 23:02:09 -06:00
Geoff
04d64d76b5
fixed long lines
2014-12-17 21:27:33 -06:00
Geoff
188be5bddd
update google scopes and endpoint to remove deprecated values
2014-12-17 21:15:34 -06:00
Ben Ramsey
e5efa75cff
Merge pull request #163 from bajb/master
...
Improvements to AbstractProvider
2014-12-15 14:17:27 -06:00
Brooke Bryan
bc3845d9e5
Code style improvements
2014-12-15 18:17:29 +00:00
Ben Ramsey
6684093ae0
Updating PHP Code Sniffer and fixing some CS violations
2014-12-15 11:57:30 -06:00
Brooke Bryan
85d88a449e
Provide base methods for userUid, userEmail and userScreenName + Tests
2014-12-03 18:10:25 +00:00
Ben Ramsey
6629d50396
Merge pull request #167 from thephpleague/microsoft-oauth-endpoints
...
Updating authorize and token URLs for MSFT, according to #146
2014-12-03 09:38:13 -06:00
Jildert Miedema
55de45401e
cs fix
2014-12-01 23:13:35 +01:00
Jildert Miedema
e8573b1df4
inserting a redirect callback
2014-12-01 23:10:06 +01:00
Ben Ramsey
c4c8c23df3
Use property_exists() instead of isset() in AbstractProvider ( fixes #134 )
2014-11-28 16:11:26 -05:00
Ben Ramsey
3cc216827c
Updating authorize and token URLs for MSFT, according to #146
2014-11-28 15:40:56 -05:00
Ben Ramsey
115259b3cb
Merge branch 'linkedin' of github.com:ricick/oauth2-client into ricick-linkedin
2014-11-28 15:10:40 -05:00
Ben Ramsey
b3e449ee6b
Merge branch 'master' of github.com:aripringle/oauth2-client into aripringle-master
...
Conflicts:
test/src/Provider/GoogleTest.php
2014-11-28 14:48:42 -05:00
Troy Pavlek
5a609fd566
Added some documentation detailing custom uids
2014-11-28 09:56:52 -07:00
Troy Pavlek
a0eee9f111
Removed extra space in conditional
2014-11-28 09:23:54 -07:00
Troy Pavlek
44f7c19b07
Draft implementation of properly setting UIDs in a provider specific fashion
2014-11-27 09:02:48 -07:00
Ben Ramsey
1eed232b5a
Merge pull request #158 from GrahamCampbell/cs
...
CS Fixes
2014-11-27 17:01:33 -05:00
Matus Zeman
ce1915643c
state param for AbstractProvider::getAuthorizationUrl()
2014-11-26 14:57:23 +01:00
Graham Campbell
ca6745027a
CS fixes
2014-11-08 21:30:40 +00:00
Ari Pringle
b068fc0af5
Merge remote branch 'upstream/master'
2014-10-27 09:11:10 -06:00
Dustin Wheeler
031fa0ec83
Fixes PSR formatting causing build failures.
2014-10-22 21:31:27 -04:00
Phil Douglas
bae3b4d927
Made linkedin pictureurl an optional response data element
2014-07-30 14:52:52 +10:00
Paul M. Jones
f780b18fef
add an interface for injection typehints
2014-07-08 10:35:08 -05:00
Ari Pringle
8cbd2c7b61
add support for Google's hd param
2014-06-30 11:30:31 -06:00
Cy
26adb5081b
Expose generated state to allow for CSRF validation.
2014-06-08 12:25:03 -07:00