Commit Graph

1560 Commits

Author SHA1 Message Date
Alex Bilbie
95068c5176 Lots of fixes following errors found from unit tests 2012-08-06 14:42:58 +01:00
Alex Bilbie
983c1faf0a Updated build.xml to run PHPUnit 2012-08-06 14:42:18 +01:00
Alex Bilbie
7ea3a045cd Moved the phpunit.xml config file to the build folder 2012-08-06 14:42:02 +01:00
Alex Bilbie
2e315fc257 New tests 2012-08-06 10:59:36 +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
b67a804e19 Removed old test/index.php 2012-08-03 16:13:23 +01:00
Alex Bilbie
0748ba379b test executable 2012-08-01 17:15:48 +01:00
Alex Bilbie
1409df6eb4 Started adding tests for auth server 2012-08-01 17:15:29 +01:00
Alex Bilbie
d0bb79bd7c Added phpunit.xml 2012-08-01 17:15:16 +01:00
Alex Bilbie
9935cc5d21 JSON error fix 2012-08-01 15:44:03 +01:00
Alex Bilbie
93772d0f70 Require PHPunit in dev composer mode 2012-08-01 15:41:41 +01:00
Alex Bilbie
5ef85e53af Removed old test file 2012-08-01 15:41:24 +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
9ead06077c Updated rule reference to use the official PSR sniffs from https://github.com/squizlabs/PHP_CodeSniffer 2012-07-26 12:52:48 +01:00
Alex Bilbie
c2ac787f09 Fixed placement of grant comments to stop PHPCS bitching 2012-07-25 16:15:14 +01:00
Alex Bilbie
10898ed8d4 Changed indentation to spaces 2012-07-25 16:14:16 +01:00
Alex Bilbie
7027eab507 Fixed errors relating to response types and grant type variables being moved into their own variables 2012-07-25 16:08:41 +01:00
Alex Bilbie
26751ef6b9 Broke up the issueAccessToken method to support additional grant types 2012-07-25 16:06:37 +01:00
Alex Bilbie
8286724d56 Removed typecasting 2012-07-25 16:05:55 +01:00
Alex Bilbie
df9c762b2e Class variable docblocks 2012-07-25 16:05:45 +01:00
Alex Bilbie
4f343cbe42 Broke the supported response types and authorisation grants out into their own variables 2012-07-25 16:04:52 +01:00
Alex Bilbie
0d060d6560 Added empty resource server file 2012-07-25 15:18:58 +01:00
Alex Bilbie
3ca2abc0ae Updated namespaces 2012-07-25 15:18:49 +01:00
Alex Bilbie
def2f4822c Moved the files into a new folder ready for Client libraries and Resource server libraries 2012-07-25 15:16:56 +01:00
Alex Bilbie
7ba0f4ee1a Fixed line lengths 2012-07-25 14:40:17 +01:00
Alex Bilbie
fdf71b758b Clarified return type of validateAuthCode method 2012-07-25 14:34:19 +01:00
Alex Bilbie
b15a2c09b3 Changed default stage parameter value to 'requested' from 'request' 2012-07-25 14:34:03 +01:00
Alex Bilbie
817a93a909 Added new accessTokenExpire parameter 2012-07-25 14:33:32 +01:00
Alex Bilbie
fb1eb183ea Added new accessTokenExpire parameter 2012-07-25 14:33:02 +01:00
Alex Bilbie
79ff22f48c Added new completeAuthCodeGrant method 2012-07-25 14:32:27 +01:00
Alex Bilbie
ee7308c0c9 Included extra default parameter for access token expiry 2012-07-25 14:31:52 +01:00
Alex Bilbie
d9953ef1ed Changed scope of newAuthCode method to private 2012-07-25 14:31:32 +01:00
Alex Bilbie
3c599e5454 Changed the error thrown if the client credentials are invalid to invalid_client 2012-07-25 14:31:09 +01:00
Alex Bilbie
fd1fe96c07 Removed typehinting 2012-07-25 14:30:39 +01:00
Alex Bilbie
a23bb301c0 Added more error messages and codes 2012-07-25 14:30:24 +01:00
Alex Bilbie
b0bd812da2 Changed $config['access_token_expire'] to $config['access_token_ttl']. Default value is now null 2012-07-25 14:29:58 +01:00
Alex Bilbie
5d012c6cf4 Added access_token_expires column to oauth_sessions table 2012-07-25 14:29:04 +01:00
Alex Bilbie
d25ef6bb89 Fixed adding scope to a session 2012-07-25 12:22:51 +01:00