Commit Graph

984 Commits

Author SHA1 Message Date
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
Alex Bilbie
bb4ca4eb37 Fixed relationships between oauth_session_scope table and oauth_sessions 2012-07-25 12:22:31 +01:00
Alex Bilbie
03fd7aa501 Removed typecasting 2012-07-25 12:18:12 +01:00
Alex Bilbie
854ea81ed8 Fixing hasSession 2012-07-25 12:07:08 +01:00
Alex Bilbie
e860ca0d0a Reworked update session 2012-07-25 12:06:33 +01:00
Alex Bilbie
1d129e4af8 Reworked query of hasSession 2012-07-25 12:06:15 +01:00
Alex Bilbie
d5c8983293 Removed typecasting of parameters and tidied up appearance 2012-07-25 12:03:50 +01:00
Alex Bilbie
411cab1734 Reworked newAuthoriseRequest method so that is always creates a new session (and removes any existing sessions) 2012-07-25 12:03:25 +01:00
Alex Bilbie
17ce8b97d8 Removed typecasting 2012-07-25 12:02:41 +01:00
Alex Bilbie
d4026677e4 Added access_token_expire option (for refresh token support) 2012-07-25 12:02:23 +01:00
Alex Bilbie
7201d3ad88 Fixed folder name 2012-07-23 14:42:36 +01:00
Alex Bilbie
e15e606d0b Temp fix for folder name 2012-07-23 14:42:15 +01:00
Alex Bilbie
2b17c1f7af Fixed namespaces 2012-07-23 14:41:32 +01:00
Alex Bilbie
f346fde718 Fixed naming issues 2012-07-23 14:41:15 +01:00
Alex Bilbie
e0361d897f Updated composer.json 2012-07-23 14:22:05 +01:00
Alex Bilbie
d7cde41fb1 Changed the namespace to "OAuth2" 2012-07-20 17:49:59 +01:00
Alex Bilbie
2e653ca351 Renamed folder 2012-07-20 17:49:06 +01:00
Alex Bilbie
2b6db69a5a Added comment to explain code that removes invalid scopes 2012-07-20 15:57:56 +01:00
Alex Bilbie
a292c4fe86 Fixed for loop parameter order. FOOL. 2012-07-20 15:56:56 +01:00
Alex Bilbie
4cc2a890b0 Fixed line lengths 2012-07-20 15:44:07 +01:00
Alex Bilbie
0638bc39d9 Missing $type in fund call 2012-07-20 15:43:08 +01:00
Alex Bilbie
386b5794e7 Updated exceptions to use exception codes and sprintf to state which parameters or scopes are wrong 2012-07-20 15:41:04 +01:00
Alex Bilbie
e3b2c4a95c Renamed interface file 2012-07-20 11:25:58 +01:00
Alex Bilbie
971f7bf402 Renamed inteface to Database 2012-07-20 11:25:29 +01:00
Alex Bilbie
f154708031 Renamed class 2012-07-20 11:22:31 +01:00
Alex Bilbie
63435154f4 Rename back to Server.php 2012-07-20 11:22:04 +01:00
Alex Bilbie
7f6d2db0a2 renamed class as test 2012-07-20 11:20:58 +01:00