Commit Graph

270 Commits

Author SHA1 Message Date
Alex Bilbie
846a008c76 Explanation of the scope delimiter parameter 2013-01-29 14:18:13 +00:00
Alex Bilbie
a189156f26 Response types are now generated from grants that are injected in 2013-01-29 14:17:56 +00:00
Alex Bilbie
d63c0ea262 Added model variable storage 2013-01-29 14:16:47 +00:00
Alex Bilbie
f74a35074a Added getResponseType parameter 2013-01-29 14:15:05 +00:00
Daniel Horrigan
945d60bd5d Renaming Server and Resource to AuthServer and ResourceServer to be less confusing. 2013-01-22 11:33:09 -05:00
Daniel Horrigan
892ae3a0d3 Started adding some Server methods, adding some Util classes and adding a way to get the token from the Resource 2013-01-22 11:25:51 -05:00
Daniel Horrigan
2727ba0078 Adding a few Getters to the Resource, moving Exceptions and adding some new ones. 2013-01-17 15:19:01 -05:00
Daniel Horrigan
c12472857b Changed Case of Oauth2 namespace to OAuth2 namespace 2013-01-08 16:35:29 -05:00
Daniel Horrigan
385111a1f2 Merge branch 'cleanup' of github.com:dandoescode/OAuth2 into feature/reorg
Conflicts:
	src/OAuth2/Authentication/Server.php
	src/Oauth2/Resource/Server.php
2013-01-08 16:26:17 -05:00
Nick Jackson
608bcb767b Bearer token now correctly base64 decoding 2013-01-08 15:52:17 +00:00
Daniel Horrigan
89e89a73dc Changing 'user_credentials' to password 2013-01-07 10:31:28 -05:00
Daniel Horrigan
2fecadd2a6 Fixing Resource bugs and moving the Request dep to a setter. 2013-01-04 17:21:24 -05:00
Daniel Horrigan
373ddf9f34 Changing Case in namespaces 2013-01-04 14:55:13 -05:00
Daniel Horrigan
a3fd22b3dd Changing Case 2013-01-04 14:44:58 -05:00
Alex Bilbie
94945ec49e Added support for refresh tokens, user credentials and client credentials grant. 100% unit test code coverage for authentication. Fixes #2 2013-01-02 19:14:22 +00:00
Daniel Horrigan
31b36f23e7 Starting the reorganization 2012-12-28 15:12:16 -05:00
Alex Bilbie
0876fd9ad3 Spacing fixes 2012-12-23 22:12:51 +00:00
Alex Bilbie
2545ea7dc1 Added refresh token params and examples 2012-12-23 22:12:44 +00:00
Alex Bilbie
0f30b2a803 Removed lots of unnecessary if/else blocks.
Removed null value of expires/expiresIn parameter
2012-12-23 21:21:37 +00:00
Daniel Horrigan
0f6f5e2939 Added the user_credentials and refresh_token grants. Fixed expires_in so it is inline with the spec, but added expires for the old usage of expires_in. Made redirect_uri in oauth_sessions ALLOW NULL since user_credential grants don't have a redirect 2012-12-19 16:12:48 -05:00
Alex Bilbie
aa978d3581 Fix variable name 2012-12-12 11:43:01 +00:00
Alex Bilbie
1be25955d6 Merge branch 'release/0.3.4' 2012-12-11 15:33:05 +00:00
Alex Bilbie
302bf1f70d Clean trailing whitespace 2012-12-11 15:31:42 +00:00
Alex Bilbie
6553fb3f22 Return client details 2012-12-11 12:09:56 +00:00
Alex Bilbie
fdfe80289a Merge branch 'release/0.3.3'. Release version 0.3.3
Conflicts:
	composer.json
2012-12-10 21:31:58 +00:00
Alex Bilbie
912cd3fa25 Changed session stage to 'requested' as per enum 2012-12-10 21:19:11 +00:00
Alex Bilbie
a5b83c00bd Version bump 2012-11-20 15:29:43 +00:00
Alex Bilbie
958eab33a7 Lots of small documentation updates and clarifications 2012-11-20 15:27:33 +00:00
Alex Bilbie
fead044830 Spacing fixes and fixed sessionScopes() example query 2012-11-20 15:27:15 +00:00
Alex Bilbie
99f54d1a02 Missing provider class
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-14 17:33:22 +01:00
Alex Bilbie
cca5ae6229 Merge branch 'feature/clients' into develop 2012-10-14 17:18:52 +01:00
Alex Bilbie
b1082ecb41 Lots of updates so it all works now
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-14 17:18:27 +01:00
Alex Bilbie
af83b1e80e Added urlUserInfo() method
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-12 14:42:36 +01:00
Alex Bilbie
92ace5c6e5 Fixed PHP error with missing bracket
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-12 13:09:56 +01:00
Alex Bilbie
5ed4a8a2c4 Don't base64 decode the bearer token
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-10 09:32:50 +01:00
Alex Bilbie
ddfb355280 Code beautification 2012-10-05 15:24:59 +01:00
Alex Bilbie
ac3743027b Code beautification 2012-10-05 15:22:29 +01:00
Alex Bilbie
a76fbcd23d Epic rewriting to use Guzzle
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:05:27 +01:00
Alex Bilbie
bef7a212e3 Fixes and cleanup
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:03:15 +01:00
Alex Bilbie
ec191cffe1 Cleanup
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:02:56 +01:00
Alex Bilbie
5c13c3ee54 Namespace fixes
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:01:09 +01:00
Alex Bilbie
52bd18a2b4 Fixed namespaces in providers
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:00:51 +01:00
Alex Bilbie
6d1702a15d Merge branch 'develop' into feature/clients 2012-09-19 23:29:40 +01:00
Alex Bilbie
7d50b8e812 Moved SQL files
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-09-19 19:59:00 +01:00
Alex Bilbie
3c2720ece4 Renamed exceptions
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-09-19 19:52:52 +01:00
Alex Bilbie
ed2cabc5b6 Merge branch 'master' of github.com:lncd/OAuth2
Conflicts:
	composer.json

Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-09-19 19:32:31 +01:00
Alex Bilbie
3f3b987fb1 Check responses from the database are valid 2012-09-19 19:27:04 +01:00
Alex Bilbie
c993a0cdc0 Use namespace, use PSR, get rid of Pyro settings 2012-09-04 14:50:20 +01:00
Alex Bilbie
9dfa485bcb PSR fixes 2012-09-04 14:49:56 +01:00
Alex Bilbie
c760667448 PSR style class braces 2012-09-04 12:43:18 +01:00
Alex Bilbie
0298f6fb7d Include IDP.php 2012-09-04 12:42:33 +01:00
Alex Bilbie
17b7bf7d1d Test if provider config exists 2012-09-04 12:40:32 +01:00
Alex Bilbie
ed6301a497 Renamed provider.php to IDP.php 2012-09-04 12:40:02 +01:00
Alex Bilbie
c423ef810f Require instead of include 2012-09-04 12:33:17 +01:00
Alex Bilbie
485a3772b6 Changed function to __construct 2012-09-04 12:32:59 +01:00
Alex Bilbie
6f03eec814 Class rename 2012-09-04 12:32:44 +01:00
Alex Bilbie
0a5455642f PSR style if/else block 2012-09-04 12:31:04 +01:00
Alex Bilbie
8fdcb02740 Exception class rename 2012-09-04 12:30:49 +01:00
Alex Bilbie
153bb962c5 PSR variable rename 2012-09-04 12:30:38 +01:00
Alex Bilbie
3ee5f22a55 Class rename 2012-09-04 12:30:15 +01:00
Alex Bilbie
c09663f2b8 Class rename 2012-09-04 12:30:06 +01:00
Alex Bilbie
6a41ae5254 PSR style if block 2012-09-04 12:29:52 +01:00
Alex Bilbie
dd5fc7dc24 PSR variable rename 2012-09-04 12:29:10 +01:00
Alex Bilbie
11415bea0b PSR style if/else block 2012-09-04 12:28:28 +01:00
Alex Bilbie
eb5010a3f8 PSR variable rename 2012-09-04 12:28:06 +01:00
Alex Bilbie
da329b6b37 Merge branch 'refs/heads/develop' into feature/clients
Conflicts:
	src/Oauth2/Authentication/Server.php
2012-09-04 12:09:13 +01:00
Alex Bilbie
a1e5fdddda Bug fix 2012-08-28 12:30:51 +01:00
Alex Bilbie
4d4db99c06 Underscored private variables and methods and updated references 2012-08-27 16:02:54 +01:00
Alex Bilbie
7a4aece507 Stylistic fix 2012-08-27 15:25:28 +01:00
Alex Bilbie
b7d73accdc Removed old die statement 2012-08-27 15:25:14 +01:00
Alex Bilbie
3642b8432e PHPCS fixes 2012-08-27 14:25:24 +01:00
Alex Bilbie
e191566260 Fixed errors with handling database calls 2012-08-27 14:25:18 +01:00
Alex Bilbie
95931abd6b Spelling fix 2012-08-27 14:24:43 +01:00
Alex Bilbie
465c1c6ab2 Wrapped getallheaders() method in function_exists (function isn't available on command line) 2012-08-24 12:25:31 +01:00
Alex Bilbie
326e96cc17 Bug fix in dbcall 2012-08-20 15:49:57 +01:00
Alex Bilbie
6fdb6177bc Lots of fixes 2012-08-20 15:09:33 +01:00
Alex Bilbie
ed3238b862 Fixed constance letter casing 2012-08-20 14:19:33 +01:00
Alex Bilbie
519d20f0a5 Changed indent to spaces 2012-08-14 16:34:43 +01:00
Alex Bilbie
e859f435a1 Added docblocks for the database interface 2012-08-14 16:28:40 +01:00
Alex Bilbie
77ce18df56 Added the resource server database interface 2012-08-14 15:46:58 +01:00
Alex Bilbie
8720de48de Initial update with some PSR-* changes 2012-08-14 15:44:25 +01:00
Alex Bilbie
a9b6cd3e12 Mini fixes 2012-08-14 15:43:11 +01:00
Alex Bilbie
44666402dd Renamed variable 2012-08-14 14:20:14 +01:00
Alex Bilbie
4c82648a9a First commit of Phil's code with some namespace and class name tweaks 2012-08-13 16:36:45 +01:00
Alex Bilbie
95068c5176 Lots of fixes following errors found from unit tests 2012-08-06 14:42:58 +01:00
Alex Bilbie
a5f019ad19 Call database methods via the dbcall() method 2012-08-06 10:59:20 +01:00
Alex Bilbie
c17cd7b1cc Fixed variable reference bug 2012-08-04 09:12:12 +01:00
Alex Bilbie
bfab30061e Spacing fix 2012-08-04 09:11:39 +01:00
Alex Bilbie
5c463a69b8 Little fixes 2012-08-01 14:50:31 +01:00
Alex Bilbie
f049997f59 Various spacing fixes 2012-07-31 16:16:38 +01:00
Alex Bilbie
3f2f25a6a7 PSR2 wants a blank line at the end of the file 2012-07-31 16:00:55 +01:00
Alex Bilbie
18ad2067a1 SQL clarrification 2012-07-31 15:52:02 +01:00
Alex Bilbie
2b9d1c0e67 Variable reference fixes 2012-07-30 14:06:46 +01:00
Alex Bilbie
4abe7e7dda Spelling fix 2012-07-30 12:10:22 +01:00
Alex Bilbie
ef928b19cf Fixed HTTP method for getting code parameter 2012-07-30 12:10:13 +01:00
Alex Bilbie
8c991b0c61 Line length fix 2012-07-30 12:08:53 +01:00
Alex Bilbie
f8941a9209 Removed hard line limit of 80 characters 2012-07-26 17:02:01 +01:00
Alex Bilbie
8946e0172b Added resource server database 2012-07-26 12:54:29 +01:00
Alex Bilbie
9df1c8e20d Fixed incorrect parameter name 2012-07-26 12:53:07 +01:00
Alex Bilbie
c2ac787f09 Fixed placement of grant comments to stop PHPCS bitching 2012-07-25 16:15:14 +01:00