Alex Bilbie
3481ec8aa2
Variable name fixes + little changes to support unit tests
2013-03-27 14:26:46 +00:00
ziege
e563230f10
Method to get all headers for the error response
...
Method added to get all required headers for the error response, according to the RFC - the correct HTTP status code and the "WWW-Authenticate" header in special cases.
2013-03-27 13:33:09 +00:00
ziege
4cb4d5ba21
Refresh token removed in Client Credentials Grant
...
As defined in RFC: http://tools.ietf.org/html/rfc6749#section-4.4.3
2013-03-27 13:25:58 +00:00
ziege
74d9946db3
Storage corrected
...
Wrong client storage replaced with session storage
2013-03-22 17:24:36 +01:00
Alex Bilbie
85312f6995
Updated ClientCredentials to properly include scopes
2013-03-22 12:36:18 +00:00
Alex Bilbie
f463eb9db1
Style fixes
2013-03-22 11:44:53 +00:00
Alex Bilbie
f4cdfa91c1
Updated Password grant
2013-03-22 11:41:04 +00:00
Alex Bilbie
105a5b2a31
Fixed client_id and client_secret retrieval from request in conformity with the RFC
2013-03-22 10:40:47 +00:00
Alex Bilbie
493834fcbf
Removed base64 decoding of token when present in authorization header. Fixes #23
2013-03-22 10:35:42 +00:00
Alex Bilbie
fce24aa74d
Added getDefaultScope method
2013-03-21 16:22:44 +00:00
Alex Bilbie
0c30b9ca66
Added scopeParamRequired method
2013-03-21 16:22:29 +00:00
Alex Bilbie
03aa81450e
Renamed method to setDefaultScope
2013-03-21 16:22:16 +00:00
Michael Gooden
5bd62fe942
Add optional default scope parameter.
...
Signed-off-by: Michael Gooden <me@michaelgooden.net>
2013-03-21 14:47:29 +00:00
lapause
26781d2c38
Corrected wrong return documentation for SessionInterface::validateAuthCode() method
2013-03-21 14:42:51 +00:00
lapause
18e1bb33de
Added missing details (return values on failure) to methods of SessionInterface
2013-03-21 14:42:47 +00:00
lapause
3a6468897f
Removed obsolete namespace inclusion
2013-03-21 14:42:43 +00:00
lapause
97484eea6a
Typo correction in inline doc
2013-03-21 14:42:38 +00:00
Alex Bilbie
3341728eb2
Added implicit grant
2013-03-06 18:01:44 +00:00
Alex Bilbie
6b172d4c27
Made getGrantType public for use with implicit grant
2013-03-06 18:01:34 +00:00
Alex Bilbie
4962762c28
Change from static calls
2013-03-06 18:01:12 +00:00
Alex Bilbie
56b559894c
Spelling fix
2013-03-06 17:57:48 +00:00
Alex Bilbie
a9a68a5cc8
Added scope parameter association for clientcredentials and password scope
...
TODO: Unit tests
2013-03-06 17:18:48 +00:00
Alex Bilbie
542ca52d49
Set a default parameter for getParam
2013-03-06 17:18:13 +00:00
Alex Bilbie
7d0c075b36
It ain't static anymore Jim
2013-03-06 17:18:04 +00:00
Alex Bilbie
07c07ccb5e
Removed static functions, inject authserver instance into grants
2013-03-06 16:59:18 +00:00
Michael Gooden
f70c039275
Fix state parameter check typo
2013-03-04 17:31:59 +02:00
Alex Bilbie
34a7d14557
Added requireStateParam() method. Fixes #9
2013-03-04 13:15:12 +00:00
Alex Bilbie
f5b6b43bef
Added requireScopes() method
2013-03-04 13:10:00 +00:00
Michael Gooden
3be3794311
Normalise long function definition.
...
Signed-off-by: Michael Gooden <michael@bluepointweb.com>
2013-03-04 12:20:11 +00:00
Michael Gooden
710c65aa42
Fix typo in SessionInterface::validateAuthCode.
2013-03-04 12:20:11 +00:00
Alex Bilbie
ffac434bcc
Added missing state parameter
2013-02-22 15:38:47 +00:00
Alex Bilbie
822669fc0c
Update getScopes
2013-02-21 17:51:01 +00:00
Alex Bilbie
22dcef33da
Fixed SQL to get a session\'s scopes
2013-02-21 17:42:30 +00:00
Alex Bilbie
43d064733f
Changed all mentions of authentication to authorization server
2013-02-20 12:40:42 +00:00
Alex Bilbie
e3f13bf545
Use self::getParam
2013-02-19 00:40:30 +00:00
Alex Bilbie
4b63c20a58
Updated docblocks with correct SQL
2013-02-19 00:26:28 +00:00
Alex Bilbie
92d9435bba
Added method to get the exception type
2013-02-15 16:29:00 +00:00
Alex Bilbie
f818bdf40e
Updated docblocks
2013-02-13 19:59:08 +00:00
Alex Bilbie
246732153c
Updated grantTypes to use AuthServer::getParam()
2013-02-13 19:39:43 +00:00
Alex Bilbie
4506037bda
Docblock updates
2013-02-13 19:36:56 +00:00
Alex Bilbie
d99002ef2f
Renamed variable as $authParams is no longer used
2013-02-13 19:36:10 +00:00
Alex Bilbie
1e2d2b3d25
Added AuthServer::getParam() function to reduce repetitive code
2013-02-13 18:25:10 +00:00
Alex Bilbie
0f4546db47
Changed 'oauth_token' to 'access_token'
2013-02-13 17:10:44 +00:00
Alex Bilbie
1cfe10105a
Updated docblocks for the two main classes
2013-02-12 20:33:23 +00:00
Alex Bilbie
e771099568
Removed unnecessary functions
2013-02-12 17:22:15 +00:00
Alex Bilbie
61d1685e84
Minor fixes to password grant
2013-02-12 16:45:33 +00:00
Alex Bilbie
d2267dbd24
Added Password grant
2013-02-12 16:22:14 +00:00
Alex Bilbie
87186d73b7
Removed old client code which can be now be found at lncd/oauth2-client
2013-02-12 16:01:02 +00:00
Alex Bilbie
e76111c2b7
Fixed silliness with access token verification
2013-02-08 11:45:51 +00:00
Alex Bilbie
60b2caf41d
Various fixes and tweaks
2013-02-08 11:40:33 +00:00
Alex Bilbie
89f3c35466
Authorization header fixes
2013-02-07 16:16:09 +00:00
Alex Bilbie
55d68bd105
Import namespace for util\request
2013-02-07 14:54:56 +00:00
Alex Bilbie
562c257596
Various bug fixes
2013-02-05 16:20:45 +00:00
Alex Bilbie
322eb15bb5
Revert "Removed unnecessary code"
...
This reverts commit c89a2346a8
.
2013-02-05 15:57:24 +00:00
Alex Bilbie
6b4e51b3a3
Removed unnecessary interfaces
2013-02-05 15:56:03 +00:00
Alex Bilbie
e903cbee68
Update request class namespace
2013-02-05 15:55:38 +00:00
Alex Bilbie
920fd9344f
Moved request class to util folder
2013-02-05 15:55:04 +00:00
Alex Bilbie
7a646d3a84
Renamed client get function
2013-02-05 14:47:54 +00:00
Alex Bilbie
66bea97e8c
Bug fixes based on previous code changes
2013-02-05 10:07:36 +00:00
Alex Bilbie
4a50af333d
Added code coverage blocks
2013-02-04 19:46:06 +00:00
Alex Bilbie
c89a2346a8
Removed unnecessary code
2013-02-04 19:45:58 +00:00
Alex Bilbie
22f793a16f
Fixed getClient call
2013-02-04 19:45:47 +00:00
Alex Bilbie
6edd486b4c
Added code coverage ignore blocks to getRequest method
2013-02-04 19:45:34 +00:00
Alex Bilbie
d5ae471d94
Throw root exception
2013-02-04 18:58:26 +00:00
Alex Bilbie
9a265f7956
Fixed bad ternary statement. Added missing semicolon
2013-02-04 18:58:17 +00:00
Alex Bilbie
04b8394009
Updated method calls to reflect naming changes
2013-02-04 18:44:19 +00:00
Alex Bilbie
6ae4db460e
$request parameter is static
2013-02-04 18:31:13 +00:00
Alex Bilbie
768dfb369c
Renamed getCurrentGrantType to getGrantType
2013-02-04 18:30:56 +00:00
Alex Bilbie
0d173d4c35
Renamed methods to prevent ORM conflict
2013-02-04 17:10:30 +00:00
Alex Bilbie
4b8bc76622
Removed properties from Interface
2013-02-04 15:32:33 +00:00
Alex Bilbie
1a1bfd9348
Fix $expiresIn call as static
2013-02-04 15:32:21 +00:00
Alex Bilbie
91bf8cc241
Removed old Authentication folder
2013-02-04 14:42:14 +00:00
Alex Bilbie
3c7fe00130
Renamed some session methods to avoid conflicts with ORM methods
2013-02-04 14:41:40 +00:00
Alex Bilbie
5f8ca89772
Added docblocks to the grant interface
2013-02-04 13:59:34 +00:00
Alex Bilbie
f855b572e8
First commit of new refresh token grant
2013-02-01 16:50:59 +00:00
Alex Bilbie
5e365bb974
Function name fix
2013-02-01 16:02:38 +00:00
Alex Bilbie
85c42db355
Variable name fix
2013-02-01 16:02:04 +00:00
Alex Bilbie
a81c486e0e
Spelling fix
2013-02-01 16:00:00 +00:00
Alex Bilbie
e8d43f2087
Anal restyle
2013-02-01 15:59:50 +00:00
Alex Bilbie
5abb84eda0
Validate all client credentials
2013-02-01 15:59:43 +00:00
Alex Bilbie
9fd7ccc137
Added ClientCredentials grant
2013-02-01 15:51:51 +00:00
Alex Bilbie
a3a617171a
$grantTypes static access
2013-02-01 15:28:40 +00:00
Alex Bilbie
47731ce901
$expiresIn now static
2013-02-01 15:28:25 +00:00
Alex Bilbie
3aa8465640
Made $grantTypes static to fix ref bug
2013-02-01 15:23:04 +00:00
Alex Bilbie
2a8688b54e
Update getRequest calls to static requests
2013-02-01 15:09:15 +00:00
Alex Bilbie
aec9aa908c
Made getRequest static
2013-02-01 15:07:47 +00:00
Alex Bilbie
8de2cdb1d9
< PHP5.4 array syntax
2013-02-01 15:02:36 +00:00
Alex Bilbie
2c1dedfe8a
Updated grantTypeInterface
2013-02-01 14:56:36 +00:00
Alex Bilbie
d732778f65
Finished AuthCode grant
2013-02-01 14:41:52 +00:00
Alex Bilbie
6eb5db0239
Lots of bug fixes. Some methods and variables made static so they can be accessed by grant classes.
2013-02-01 14:41:10 +00:00
Alex Bilbie
7a851084c6
Initial commit of AuthCode grant type
2013-02-01 10:50:39 +00:00
Alex Bilbie
9b6a92c506
Updated namespace use for Util\SecureKey
2013-01-29 16:53:39 +00:00
Alex Bilbie
781bf985c3
Renamed checkClientAuthoriseParams method to checkAuthoriseParams
2013-01-29 16:25:14 +00:00
Alex Bilbie
87a142cc30
Updated getCurrentGrantType method
2013-01-29 16:24:48 +00:00
Alex Bilbie
4fa37bb356
Updated issueAccessToken method
2013-01-29 16:24:28 +00:00
Alex Bilbie
514aabb838
Updated newAuthoriseRequest method
2013-01-29 16:23:41 +00:00
Alex Bilbie
3cb53448c5
Anal style fix
2013-01-29 16:21:53 +00:00
Alex Bilbie
8ae0dbcf46
Default to 40 characters (as that is what the DB table columns are set to)
2013-01-29 16:21:39 +00:00
Alex Bilbie
ffcad85d95
Renamed functions, changed some doc terms
2013-01-29 16:21:21 +00:00
Alex Bilbie
14b680f6be
Moved GrantTypeInterface
2013-01-29 16:18:45 +00:00
Alex Bilbie
74f48d28a4
Added ClientException
2013-01-29 16:18:23 +00:00
Alex Bilbie
31c3b495bf
Re-added checkClientAuthoriseParams() function
2013-01-29 14:56:17 +00:00
Alex Bilbie
a8b6389092
Updated SessionInterface
2013-01-29 14:55:50 +00:00
Alex Bilbie
5e91b95cb3
Updated ScopeInterface with get method
2013-01-29 14:25:49 +00:00
Alex Bilbie
1ed4c27420
Update ClientInterface with get() method
2013-01-29 14:23:28 +00:00
Alex Bilbie
57f825b0a8
Added exception codes and messages
2013-01-29 14:19:23 +00:00
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
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
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