Commit Graph

85 Commits (4a138df1f1eebbc3994739eef247fc8103bc6282)

Author SHA1 Message Date
Phil Sturgeon 80c704679d Renamed Authorizationcode to AuthorizationCode
PSR-0 and Ubuntu both care about case-sensitivity.
2014-04-29 10:55:17 +01:00
Tom Anderson 0f3c8002b6 Add specific check for HHVM 2014-04-28 15:55:00 -07:00
Tom Anderson 2bb4084602 Don't use PHP constant; use constant value instead to support hhvm 2014-04-28 15:55:00 -07:00
Tom Anderson 8d4879d33d New entity for user data 2014-04-28 15:55:00 -07:00
Tom Anderson ec97b7d811 Renamed IdentityProvider to AbstractProvider 2014-04-28 15:55:00 -07:00
Tom Anderson 1a36805cec Fixed constructor not parsing config options 2014-04-28 14:00:04 -07:00
Tom Anderson 375d01c0b8 100% code coverage 2014-04-25 13:23:09 -07:00
Tom Anderson ea5851f755 Added missing RefreshToken 2014-04-25 12:27:49 -07:00
Tom Anderson 73f060a56d Corrected magic getters and setters, removed unused iterator and provide fluent interface: 2014-04-25 10:50:11 -07:00
Tom Anderson 7f7567cf92 100% unit tests for Vkontakte, Instagram, Eventbrite, Microsoft 2014-04-25 10:40:42 -07:00
Tom Anderson 73768b6447 Simplified user class; php defaults vars to null so no need to duplicate that 2014-04-24 19:54:41 -07:00
Tom Anderson 57fbc1d433 100% unit test of Github, Google, Facebook and LinkedIn 2014-04-24 19:54:29 -07:00
Tom Anderson 4ce38514ae Setup base unit testing framework 2014-04-24 15:22:57 -07:00
Tom Anderson 6387ae33fe Added php-cs-fixer to dev and ran it 2014-04-23 21:49:08 -07:00
Tom Anderson 399a6167c4 Fix perms to 644 2014-04-23 21:49:08 -07:00
Tom Anderson 33b0147bf3 psr-4 2014-04-23 21:49:08 -07:00
Tom Anderson 99aff3936b Grant namespace for verifying instance was improperly referenced 2014-04-23 14:48:19 -07:00
Paul Dragoonis 69209e8dd6 Adding in multi-version syntax support for http_build_query 2014-04-20 23:02:10 +01:00
Dwight Watson 1611d9b917 Fix issue if Facebook user doesn't have a username 2014-04-20 10:56:22 +10:00
Ben Corlett 91bd27b184 Merge pull request #45 from suwardany/fixes/instagram
instagram missing methods
2014-03-07 13:04:39 +11:00
James Mills f9466207ef This should fix issue #59
I have added a new parameter to the IdentityProvider to hold any headers that a Provider needs. By default this is null. In the Eventbrite Provider I have added the headers needed to get Eventbrite to work.
2014-02-10 13:36:58 +04:00
James Mills d79cdb6a5f Removed debug and commented out code. Thanks Mr S. 2014-02-04 14:11:05 +04:00
James Mills 754250d3af When you make requests to the Eventbrite API using oauth2 access_token you need to send an Authorization header field with value of Bearer otherwise you get error.
This is not needed for all the oauth stuff just the last call to the API to fetchUserDetails.

I am not sure if this will brake other requests to other providers or if they will just ignore this extra header?
2014-02-04 10:04:08 +04:00
James Mills b5aa8a6262 Adding Eventbrite Provider 2014-02-04 09:55:29 +04:00
Pascal Borreli 1e7826ee26 Fixed typos 2014-02-01 22:59:40 +00:00
Phil Sturgeon f53ba1d052 Merge pull request #51 from robertpitt/master
Image URL not present within Google Identity
2014-01-17 07:41:24 -08:00
Robert Pitt be12622ce6 Image URL not present within Google Identity
Image url is set to incorrect key within the User Object.;
2014-01-17 14:42:53 +00:00
Shaun Hare b1714b4a0a Changed IdentityProvider to enforce & as query param separator and ignore ini setting 2014-01-16 11:58:33 +00:00
Robert Pitt e1dac23e2e Set approval prompt to auto from force 2014-01-11 23:09:11 +00:00
Suhayb El Wardany 4a9f0259bb instagram missing methods 2013-12-10 02:52:55 +02:00
Phil Sturgeon 38b94802fd PSR-2 CS Fixes 2013-11-17 21:45:28 -05:00
Pavel Polyakov bcd04c1f0f Vkontakte Provider has been added 2013-11-14 09:40:10 +02:00
Chris Hayes c26c090563 Rename Linkedin.php to LinkedIn.php
Fixed an issue where LinkedIn provider wasn't found in case-sensitive environments.
2013-10-30 09:53:29 -04:00
Isern Palaus 94f27933d4 Added getScopes and setScopes methods to IdentityProvider.
Signed-off-by: Isern Palaus <ipalaus@ipalaus.com>
2013-10-22 15:57:22 +02:00
Chris Hayes 8385a170dc Update LinkedIn Provider
Added missing userUid(), userEmail(), and userScreenName() methods.
2013-10-09 00:39:18 -04:00
tomaszsobczak 4fb391b37d Fixed Provider\Google#userDetails to match Provider\User implementation 2013-09-27 11:49:45 +02:00
Ben Corlett 02f311263e Add Microsoft methods.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-09-14 12:47:50 +10:00
Ben Corlett 3ae7f8a69a Add Google methods.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-09-14 12:38:58 +10:00
Ben Corlett 342857461c Move methods.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-09-14 12:25:49 +10:00
Ben Corlett 8f0f314b41 Add new methods to FB driver.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-09-14 12:21:42 +10:00
Tim Fountain 72781e2464 Fixed typo in authorization method call 2013-09-13 16:31:18 +01:00
Ben Corlett f6fd15681e Tweak method for consistency.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-09-13 16:49:32 +10:00
Ben Corlett aa58cd48cd Adding new method to retrieve a user's ID and screen name from their APIs, with caching.
I haven't put these into the abstract methods yet, not until I fill out the implementation on every provider.

Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-09-13 16:44:47 +10:00
Ben Corlett 42db96f49d Fixing exceptions referencing old variables.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-09-13 16:43:57 +10:00
Ben Corlett 3bb2f941a4 Adding method to simply retrieve the authorise URI rather than only doing a forced redirect.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-09-13 16:02:21 +10:00
Phil Sturgeon 53c79b51fa Merge pull request #18 from bitinn/master
github user might not have a display name
2013-08-26 20:27:20 -07:00
David Frank 1ca735120d github user might not have a display name 2013-08-27 11:10:49 +08:00
Maksim Surguy e1422f31a8 Added Microsoft to the providers
Added auth provider for Microsoft accounts
2013-08-22 19:49:53 -07:00
Maksim Surguy 25862eca7d Added LinkedIn to the providers 2013-08-21 16:05:39 -07:00
Maksim Surguy 664248f103 Added Instagram provider
Added provider definition for Instagram
2013-08-20 15:09:15 -07:00