Vitaliy Filippov
40b0c7c3b7
Include more details in exceptions, add JSON Web Token implementation
2017-05-31 16:21:37 +03:00
Vitaliy Filippov
7b137a5d34
Add GenericProvider
2016-03-11 14:32:01 +03:00
Vitaliy Filippov
b789b77c07
Simplify everything
...
* Remove useless wrapper code (IDPException, Entity\User, Grant\*, httpBuildQuery)
* Remove useless getUserUid(), getUserEmail(), getUserScreenName() methods that throw away remote-fetched data
* Do not depend on Guzzle, use just cURL instead
* Shorten namespace name and remove sub-namespaces
* Do not use Mockery in tests, use custom cURL mock instead (TESTS STILL PASS)
2015-04-19 00:29:09 +03:00
Brooke Bryan
e73c7ac641
Send headers with auth getAccessToken requests
2015-04-02 15:12:37 +01:00
Phil Sturgeon
0a9d2e8efb
Revert "Removing Eventbrite support and adding link in readme to new package"
2015-03-21 13:17:51 -04:00
Steven Maguire
c6fa377634
removing eventbrite and adding link in readme
2015-03-21 11:27:33 -05:00
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
Ben Ramsey
76af6059fb
Merge pull request #232 from shadowhand/provider-get-headers
...
Enhance ability to use client to make authenticated requests
2015-03-10 16:23:08 -05:00
Ben Ramsey
248f55c201
Merge branch 'geofflancaster-patch' into geofflancaster-idpexception-empty-strings
...
Conflicts:
test/src/Exception/IDPExceptionTest.php
2015-03-10 16:01:48 -05: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
Alexandru Guzinschi
c0f8ebf920
Added getResponseBody method in IDPException
...
Problem:
Some providers are sending additional information when an error occurs,
which can't be accessed because property `$result` is protected.
Solution:
Data from this property can be accessed using `getResponseBody()` method.
Closes #185
2015-02-26 12:50:11 +02: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
6373453f78
remove custom provider code from AccessToken
2015-02-23 12:15:25 -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
Geoff Lancaster
a91f3788cb
update idpexception to account for empty strings
...
Some providers (ex. Google) specify an error response object which is an empty string in cases where a 403/401 are returned. This will force the exception to check that the value isset and it is not an empty string which will help prevent the Unknown error case from occurring.
2015-01-16 15:19:14 -06: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
Ben Ramsey
76fa1614fd
Merge pull request #171 from jildertmiedema/coverage
...
coverage of exception
2014-12-02 07:47:43 -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
Jildert Miedema
7f4f5a501d
coverage of exception
2014-12-01 21:42:43 +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