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
|
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 |
|
Alex Bilbie
|
eb0756e7e0
|
Fixed line length
|
2012-07-20 11:06:20 +01:00 |
|
Alex Bilbie
|
5c32269ad4
|
Renamed the file to AuthServer.php
|
2012-07-20 11:05:26 +01:00 |
|
Alex Bilbie
|
b1a55806a8
|
Changed the class to AuthServer
|
2012-07-20 11:04:23 +01:00 |
|
Alex Bilbie
|
727cdb54e7
|
Lots of docblock updates
|
2012-07-20 11:04:08 +01:00 |
|
Alex Bilbie
|
e8db4ee20e
|
Fixed line lengths of comments
|
2012-07-19 15:34:19 +01:00 |
|
Alex Bilbie
|
0b0ab19ccb
|
Finished final docblock SQL statements and descriptions.
TODO: finish return types
|
2012-07-19 15:30:52 +01:00 |
|
Alex Bilbie
|
3ab685f8e3
|
Updated docblocks for almost all of the methods
|
2012-07-16 18:11:50 +01:00 |
|
Alex Bilbie
|
78551b0859
|
Added parameter doc blocks
|
2012-07-16 16:47:54 +01:00 |
|
Alex Bilbie
|
d5f0ac479b
|
Added NULL default back to $clientSecret and $redirectUri
|
2012-07-16 15:46:02 +01:00 |
|
Alex Bilbie
|
d0a40f208c
|
Moved license into it's own file
|
2012-07-16 15:28:29 +01:00 |
|
Alex Bilbie
|
f98c705fff
|
Renamed interface file
|
2012-07-16 15:27:46 +01:00 |
|
Alex Bilbie
|
36c2513a7f
|
Removed type hints and changed the name of the class
|
2012-07-16 15:27:24 +01:00 |
|
Alex Bilbie
|
ad562ce270
|
Removed the abstract class
|
2012-07-16 15:27:11 +01:00 |
|
Alex Bilbie
|
ad26632a71
|
Created an abstract class
|
2012-07-12 15:11:29 +01:00 |
|
Alex Bilbie
|
96435463bc
|
Added use statement to hopefully pull in the OAuth2ServerDatabase interface
|
2012-07-12 15:07:34 +01:00 |
|
Alex Bilbie
|
ec706fc950
|
Added namespace to the interface
|
2012-07-12 15:00:30 +01:00 |
|
Alex Bilbie
|
3c6ad24f22
|
Changed the namespace to oauth2server
|
2012-07-12 14:57:29 +01:00 |
|
Alex Bilbie
|
813b19cb7a
|
Removed the type hinting otherwise it tries to extend OAuth2\object which doesn't exist
|
2012-07-11 17:04:00 +01:00 |
|
Alex Bilbie
|
8b7b70f432
|
Extend the default PHP Exception class
|
2012-07-11 17:03:14 +01:00 |
|
Alex Bilbie
|
9844652efb
|
Fixed line length of license
|
2012-07-11 14:01:13 +01:00 |
|
Alex Bilbie
|
ff4e78e575
|
Changed namespace
|
2012-07-09 16:48:14 +01:00 |
|
Alex Bilbie
|
f8417f2a4a
|
Added MIT license
|
2012-07-09 16:41:46 +01:00 |
|
Alex Bilbie
|
c8944419fa
|
Added initial DB structure
|
2012-07-09 16:40:03 +01:00 |
|
Alex Bilbie
|
22f397efc3
|
Added SQL folder with index.html
|
2012-07-09 16:39:53 +01:00 |
|
Alex Bilbie
|
938c54888f
|
Fixed variable name
|
2012-07-06 19:32:27 +01:00 |
|
Alex Bilbie
|
2ba9a1d279
|
Comment changes
|
2012-07-06 19:31:36 +01:00 |
|
Alex Bilbie
|
45bfcffdc2
|
Fix
|
2012-07-06 19:30:11 +01:00 |
|
Alex Bilbie
|
c29c9d1d93
|
Spacing
|
2012-07-06 19:29:46 +01:00 |
|
Alex Bilbie
|
92be306d04
|
Fixed variable name
|
2012-07-06 19:29:39 +01:00 |
|
Alex Bilbie
|
f0e36e6c94
|
Fixed invalid variable name
|
2012-07-06 19:29:20 +01:00 |
|
Alex Bilbie
|
1c5d239087
|
Fixed brace placement
|
2012-07-06 19:28:09 +01:00 |
|
Alex Bilbie
|
e3ee9e84d2
|
Clarified comment
|
2012-07-06 19:26:49 +01:00 |
|
Alex Bilbie
|
9ea0d8f0e9
|
Added scope to newAuthoriseRequst function
|
2012-07-06 19:25:40 +01:00 |
|
Alex Bilbie
|
b4eeb7ca10
|
Moved comment to silent PHPCS
|
2012-07-06 19:24:51 +01:00 |
|
Alex Bilbie
|
818ca8dd7f
|
Brace should be on a new line
|
2012-07-06 19:24:06 +01:00 |
|
Alex Bilbie
|
0eb0d68464
|
Docblock updates
|
2012-07-06 19:22:57 +01:00 |
|
Alex Bilbie
|
26d3d7789d
|
Renamed checkAuthoriseParams function to checkClientAuthoriseParams
|
2012-07-06 19:22:48 +01:00 |
|
Alex Bilbie
|
5fbdccde40
|
Added newAuthoriseRequest function
|
2012-07-06 19:22:10 +01:00 |
|
Alex Bilbie
|
927d1dc838
|
Added generateCode function
|
2012-07-06 19:21:50 +01:00 |
|
Alex Bilbie
|
1c447e4a8e
|
Added newAuthCode function
|
2012-07-06 19:21:11 +01:00 |
|
Alex Bilbie
|
fd90e76c91
|
Added redirectUri function
|
2012-07-06 19:20:53 +01:00 |
|
Alex Bilbie
|
11995764ba
|
Added hasAccessToken query
|
2012-07-06 19:20:21 +01:00 |
|
Alex Bilbie
|
54a7a5b893
|
Set a type for deleteSession()
|
2012-07-06 19:20:04 +01:00 |
|
Alex Bilbie
|
f9dc4cba79
|
Added some docblocks
|
2012-07-06 18:15:53 +01:00 |
|
Alex Bilbie
|
13f2964944
|
Optional $options
|
2012-07-06 18:15:43 +01:00 |
|
Alex Bilbie
|
00fe3d3501
|
$options is null by default (makes it optional)
|
2012-07-06 18:15:28 +01:00 |
|
Alex Bilbie
|
a823096b44
|
If $options is not equal to null then overwrite default options
|
2012-07-06 18:15:03 +01:00 |
|
Alex Bilbie
|
f7d200faec
|
Removed validateUser function
|
2012-07-06 18:14:32 +01:00 |
|
Alex Bilbie
|
2b44f0fd81
|
Removed unnecessary files
|
2012-07-06 17:56:15 +01:00 |
|
Alex Bilbie
|
d01720bcc2
|
Fixing line lengths
|
2012-07-06 17:52:47 +01:00 |
|
Alex Bilbie
|
e8be38cbfc
|
Fixed for, if and foreach opening brace position
|
2012-07-06 17:48:42 +01:00 |
|
Alex Bilbie
|
41d8e01482
|
NULL should be null
|
2012-07-06 17:48:20 +01:00 |
|
Alex Bilbie
|
213f2a4ad8
|
Added checkAuthoriseParams method
|
2012-07-06 17:44:12 +01:00 |
|
Alex Bilbie
|
9eacbdc77e
|
Config options
|
2012-07-06 17:43:55 +01:00 |
|
Alex Bilbie
|
e1c375f617
|
Database object (and register method)
|
2012-07-06 17:43:33 +01:00 |
|
Alex Bilbie
|
df0838c321
|
Spelling fix
|
2012-07-06 17:42:50 +01:00 |
|
Alex Bilbie
|
cc23522b49
|
Fixed line size errors
|
2012-07-06 16:47:11 +01:00 |
|
Alex Bilbie
|
11c0a45bfb
|
Added error codes and descriptions
|
2012-07-06 16:44:24 +01:00 |
|
Alex Bilbie
|
4eb0f8b596
|
Added exceptions classes
|
2012-07-06 16:44:07 +01:00 |
|
Alex Bilbie
|
6cab31d7e8
|
Fixing PHP errors
|
2012-07-06 14:05:21 +01:00 |
|
Alex Bilbie
|
8ac1600063
|
Default null values (and string type hinting) for various parameters
|
2012-07-06 13:51:05 +01:00 |
|
Alex Bilbie
|
ab6db8fe67
|
Undo 48a068b999
|
2012-07-06 13:42:39 +01:00 |
|
Alex Bilbie
|
48a068b999
|
$queryDelimeter should be a string
|
2012-07-06 13:40:59 +01:00 |
|
Alex Bilbie
|
3eb408bf6f
|
Split functions so line lengths aren't so long
|
2012-07-06 13:38:05 +01:00 |
|
Alex Bilbie
|
7874c7df15
|
Split line to less than 80 chars so PHPCS stops bitching
|
2012-07-06 13:32:50 +01:00 |
|
Alex Bilbie
|
93f9727f19
|
Added scope to __construct method
|
2012-07-06 13:32:36 +01:00 |
|
Alex Bilbie
|
01e13d167b
|
Converted spaces to tabs
|
2012-07-06 13:31:33 +01:00 |
|
Alex Bilbie
|
dfaa99eb26
|
Converted tabs to spaces
|
2012-07-06 13:31:26 +01:00 |
|
Alex Bilbie
|
6d7aa9726d
|
Coverted tabs to spaces
|
2012-07-06 13:30:10 +01:00 |
|
Alex Bilbie
|
70dd803025
|
Missing semicolon
|
2012-07-06 12:39:43 +01:00 |
|
Alex Bilbie
|
eae6dc471d
|
Comment about the purpose of details function
|
2012-07-06 08:20:45 +01:00 |
|
Alex Bilbie
|
fdbd99c5c6
|
Set the DB interface
|
2012-07-06 08:20:19 +01:00 |
|
Alex Bilbie
|
7bca63a18f
|
First commit
|
2012-07-05 17:38:58 +01:00 |
|