Julián Gutiérrez
a644eacea7
Merge branch 'V5-WIP' into move_identifier_generation
2016-02-18 18:14:59 +01:00
Alex Bilbie
13baa0bb26
Updated tests
2016-02-18 12:07:50 +00:00
Alex Bilbie
ad5b242d10
Updated AbstractGrantTest
2016-02-18 11:36:20 +00:00
Alex Bilbie
73cd377c4b
Added client credentials grant test
2016-02-18 10:49:13 +00:00
Alex Bilbie
e808528cc8
Added test stubs
2016-02-18 10:47:59 +00:00
Alex Bilbie
fb77a78fb3
Added Password Grant test
2016-02-18 10:47:52 +00:00
Alex Bilbie
0d8cb0d06f
Fixes for RefreshTokenGrant
2016-02-18 10:47:30 +00:00
Julián Gutiérrez
5d6634aa9f
Merge branch 'V5-WIP' into move_identifier_generation
2016-02-13 14:11:38 +01:00
Alex Bilbie
de13e14cdd
Added test/Utils
2016-02-12 18:08:13 +00:00
Alex Bilbie
08ad67e401
Updated phpunit tests
2016-02-12 17:53:07 +00:00
Alex Bilbie
21e2ccd0fb
Removed codeception
2016-02-12 17:51:10 +00:00
Alex Bilbie
9a8b7ec898
Removed old codecept tests
2016-02-12 17:46:30 +00:00
Alex Bilbie
64d4c4a38a
Removed old tests
2016-02-12 15:44:34 +00:00
Alex Bilbie
18b104d0ac
Run codecept build
to generate test files
2015-04-06 08:34:50 +01:00
Alex Bilbie
775d42115a
More client credentials test
2015-04-05 18:18:09 +01:00
Alex Bilbie
f3705865a3
Ignore codeception output
2015-04-05 18:17:36 +01:00
Alex Bilbie
7a3670523d
First commit of Codeception files
2015-04-05 17:05:49 +01:00
Alex Bilbie
7c57310b67
Removed old fuzz tests
2015-04-04 15:41:31 +01:00
Alex Bilbie
b727be55a2
Merge branch 'master' of https://github.com/Symplicity/oauth2-server into Symplicity-master
2014-12-27 22:57:08 +00:00
Alex Bilbie
707c85b0d6
Fixes and tests
2014-12-27 22:26:31 +00:00
Dave Walker
851c7c0eb1
Per the spec:
...
The authorization server MAY issue a new refresh token, in which case
the client MUST discard the old refresh token and replace it with the
new refresh token. The authorization server MAY revoke the old
refresh token after issuing a new refresh token to the client. If a
new refresh token is issued, the refresh token scope MUST be
identical to that of the refresh token included by the client in the
request.
This commit allows users to specifiy the time before the Refresh Token
expire time to issue a new Refresh Token.
alter method names, naming convention(?)
2014-12-21 18:51:52 -05:00
Graham Campbell
a1726903b5
CS fixes
2014-12-10 13:10:35 +00:00
Alex Bilbie
f8b61b47b9
Ensure Refresh Token Entity hasn't expired
2014-12-03 23:22:14 +00:00
Alex Bilbie
f83e5a8731
Learnt how to spell delimiter
2014-11-20 23:52:29 +00:00
Graham Campbell
4c1cd04a24
CS fixes
2014-11-08 18:26:12 +00:00
Alex Bilbie
583c21e7db
Updated unit tests
2014-11-08 17:16:17 +00:00
Alex Bilbie
7dc5a8090f
Remove old test
2014-11-08 17:03:20 +00:00
Alex Bilbie
b9debaab26
Fix #231
2014-11-08 16:44:39 +00:00
Alex Bilbie
856051bfb3
Fix #232
2014-11-08 16:20:13 +00:00
Alex Bilbie
3815355489
Removed generic getStorage method and replaced with distinct calls to getters
2014-11-07 02:20:06 +00:00
Alex Bilbie
db7c42cc91
Fixed broken tests
2014-11-07 00:55:38 +00:00
Alex Bilbie
fbf1535db1
Renamed Adapter to AbstractStorage because it isn't actually an adapter
2014-11-07 00:45:25 +00:00
Alex Bilbie
136edf16c5
Fix #213
2014-09-30 23:55:21 +01:00
pulkit
1ff3d1adda
support grant specific access token ttl
2014-09-11 13:58:01 +01:00
Alex Bilbie
d32cea1988
Removed tests that had crept in
2014-08-16 10:53:32 +02:00
Alex Bilbie
522c7478c7
Fix #169
2014-08-06 09:53:47 +01:00
Alex Bilbie
79f15f3855
Merge branch 'v4.0.0-WIP' into develop
...
Conflicts:
.gitignore
.travis.yml
README.md
composer.json
phpunit.xml
sql/mysql.sql
src/League/OAuth2/Server/Grant/RefreshToken.php
src/League/OAuth2/Server/Resource.php
src/League/OAuth2/Server/Storage/SessionInterface.php
src/League/OAuth2/Server/Util/Request.php
src/Util/KeyAlgorithm/DefaultAlgorithm.php
tests/resource/ResourceServerTest.php
tests/util/RedirectUriTest.php
tests/util/RequestTest.php
tests/util/SecureKeyTest.php
2014-08-06 09:21:56 +01:00
Alex Bilbie
ca1b977786
Added another test
2014-08-06 08:43:25 +01:00
Alex Bilbie
7525fc0884
Bug fixes
2014-08-06 08:43:08 +01:00
Alex Bilbie
07a42f6f43
Added setAccessTokenId method
2014-08-06 08:42:42 +01:00
Alex Bilbie
684a8a269e
Updated examples
2014-08-04 18:54:01 +01:00
Alex Bilbie
7e0e337134
Fixed grant password fuzz test
2014-08-04 15:27:08 +01:00
Alex Bilbie
69208fe0ac
Added more fizzfuzz tests
2014-08-04 15:18:55 +01:00
Alex Bilbie
806838b8e4
So long codeception, you suck
2014-08-04 15:18:44 +01:00
Alex Bilbie
2637af87ec
Merge branch 'v4.0.0-relational-example' of github.com:thephpleague/oauth2-server into v4.0.0-relational-example
2014-08-04 10:54:50 +01:00
Alex Bilbie
ffe59f5a5f
Added Fuzz tests
2014-08-04 09:12:00 +01:00
Alex Bilbie
ad12a088cf
Renamed auth to authServer
2014-07-28 13:56:00 +01:00
Alex Bilbie
0810be9ce4
Merge branch 'v4.0.0-relational-example' of github.com:thephpleague/oauth2-server into v4.0.0-relational-example
2014-07-28 13:54:46 +01:00
Alex Bilbie
7f75246619
Added auth functional tests
2014-07-27 22:51:00 +01:00
Alex Bilbie
54e6bbd4a6
expires
isn't part of the spec
2014-07-27 17:15:55 +01:00
Alex Bilbie
395ee3bf49
Moved existing functional tests into resource server folder
2014-07-22 12:15:41 +01:00
Alex Bilbie
47a5c1ba08
100% unit test coverage
2014-07-22 11:45:19 +01:00
Alex Bilbie
7067a35d3a
Fixed broken example tests
2014-07-22 10:58:15 +01:00
Alex Bilbie
f40ada9ac7
Moved unit tests
2014-07-22 09:23:00 +01:00
Alex Bilbie
ca61d5d4e0
Moved functional tests
2014-07-22 09:21:01 +01:00
Alex Bilbie
20032f33a2
More tests
2014-07-12 12:07:46 +01:00
Alex Bilbie
b694cca743
Fix broken test
2014-07-12 08:58:18 +01:00
Alex Bilbie
c6bc1b0cfc
Updated tests
2014-07-11 18:19:10 +01:00
Woody Gilk
f34dd4a0cb
401 status is for invalid_token, not insufficient_scope
2014-07-11 11:59:18 -05:00
Woody Gilk
44db2b295f
Stop testing stdClass as an argument to hasScope, it is pointless
2014-07-10 17:02:50 -05:00
Woody Gilk
33f4f5b7ab
Add $required parameter to hasScope(), triggers InsufficientScopeException
2014-07-10 17:02:16 -05:00
Woody Gilk
e61782975a
Copy getExceptionType(), getExceptionMessage(), and getExceptionHttpHeaders() to Resource server
2014-07-10 17:02:16 -05:00
Woody Gilk
d7c1c50269
Throw MissingAccessTokenException in the Resource server when no token exists
2014-07-10 16:59:25 -05:00
Alex Bilbie
92639fbbd6
Removed dead code
2014-06-20 14:31:17 +01:00
Alex Bilbie
9af1d2a201
100% test coverage
2014-06-20 14:29:47 +01:00
Alex Bilbie
6aa52adb3e
Fixed broken tests after rename
2014-06-20 14:16:03 +01:00
Woody Gilk
cd767c07fa
Replace all tabs with 4 spaces in test files
2014-05-31 16:30:32 -05:00
Alex Bilbie
ad5cef3b7d
Ensure token works via header
2014-05-10 11:58:00 +01:00
Alex Bilbie
d065549e95
First commit of API tests
2014-05-10 11:54:11 +01:00
Alex Bilbie
d40ee11ef5
Scope entity is json serializable
2014-05-08 11:55:04 +01:00
Alex Bilbie
61f039366b
Throw correct exception when access token is invalid
2014-05-08 10:29:40 +01:00
Alex Bilbie
6a0596f40b
Fix #164
2014-05-07 17:30:07 +01:00
Alex Bilbie
4823bfde8b
Test OAuthException
2014-05-07 17:25:38 +01:00
Alex Bilbie
e4c43faa33
Fixed tests
2014-05-07 17:09:52 +01:00
Alex Bilbie
7356c5ad74
Renamed test classes
2014-05-03 13:54:30 +01:00
Alex Bilbie
5c8ed58c67
Cleaned up tests
2014-05-03 10:55:25 +01:00
Alex Bilbie
107991b0a7
Updated grant tests with new grant name
2014-05-02 17:25:04 +01:00
Alex Bilbie
97fd115530
Updated with new entity names
2014-05-02 17:21:53 +01:00
Alex Bilbie
8fbbc7bd07
isValidRequest now throws exception
2014-05-02 15:15:03 +01:00
Alex Bilbie
782f43c73a
Updated entity class names
2014-05-02 15:14:12 +01:00
Alex Bilbie
6e5327a0e2
Renamed StubAbstractToken
2014-05-02 15:12:45 +01:00
Alex Bilbie
5206d77167
Renamed test classes
2014-05-02 15:12:15 +01:00
Alex Bilbie
1183fe80c6
Lots of fixes for tests following exceptions changes
2014-05-01 14:33:11 +01:00
Alex Bilbie
5893ba4e8e
Fixes #151
2014-04-06 21:08:35 +01:00
Alex Bilbie
2aa318cfd7
AuthCode grant
2014-04-06 19:14:46 +01:00
Alex Bilbie
b5217271b0
Added exception message testing
2014-04-06 19:13:45 +01:00
Joseph Deray
cc1e78e1ff
removed unused use statement
2014-03-11 12:42:26 -04:00
Joseph Deray
b12a1d84df
added the ability to change the algorithm used to generate the token strings. added files missing in last commit
2014-03-11 12:41:21 -04:00
Joseph Deray
901aab9deb
added the ability to change the algorithm used to generate the token strings
2014-03-11 12:39:09 -04:00
Alex Bilbie
c60b29d201
First commit of AuthCode grant and entity
2014-03-09 20:03:05 +00:00
Alex Bilbie
4e37d9bb61
Updated Refresh Token and Password grants
2014-03-09 19:35:23 +00:00
Alex Bilbie
468acbc369
Renamed Resource to ResourceServer
2014-02-24 14:43:26 +00:00
Alex Bilbie
013b1b53b4
Renamed Authorization to AuthorizationServer
2014-02-24 14:43:00 +00:00
Alex Bilbie
5254c9d225
Renamed Authorization to AuthorizationServer
2014-02-24 14:42:35 +00:00
Alex Bilbie
20df1f50a6
Some initial grant testing
2014-01-17 10:36:57 +00:00
Alex Bilbie
40ea409aed
Removed private property reader hack
2014-01-16 17:27:05 +00:00
Alex Bilbie
add1aa5949
Updated tests
2014-01-16 16:51:06 +00:00
Alex Bilbie
36760a07cc
Updated util tests
2014-01-16 16:50:30 +00:00
Alex Bilbie
a2db7e1929
Removed old tests
2014-01-16 16:50:03 +00:00
Alex Bilbie
619d755008
Removed some tests that randomly fail
2013-12-06 10:17:33 +00:00
Alex Bilbie
75482c9e20
Test setIdentifier because @philsturgeon didn't
2013-12-05 20:32:46 +00:00
Alex Bilbie
0c36045913
Updated unit tests
2013-12-05 20:25:55 +00:00
Dave Widmer
69710a5909
Normalizing headers to a Ucfirst-With-Dashes format.
2013-08-20 11:40:02 -04:00
Alex Bilbie
a9ecca92fc
Fixed broken test
2013-05-27 19:38:07 +01:00
Alex Bilbie
f5251a6080
Updated sessions
2013-05-10 17:39:29 -07:00
Alex Bilbie
fdb89fb5e4
Updated tests
2013-05-10 16:13:11 -07:00
Alex Bilbie
8c4019693b
Updated @ziege's patch to overcome awkward access token definition requirement (i.e. access token can have a space in it) and also optimised code. Fixes #52
2013-05-10 12:57:34 -07:00
Alex Bilbie
f4bcfee687
Update associated scopes if requested in refresh access token. Fixes #47
2013-05-09 11:42:28 -07:00
Alex Bilbie
7035792325
Allow for multiple default scopes. Fixes #42
2013-05-09 10:15:36 -07:00
Alex Bilbie
ddefb2ee16
Set the scope parameter to not be required by default. Fixes #43
2013-05-09 10:02:41 -07:00
Alex Bilbie
75894fd5bc
Test for getClientId
2013-05-08 18:12:18 -07:00
Alex Bilbie
083a44df2e
Fixed broken tests following previous commits
2013-05-08 18:10:43 -07:00
Alex Bilbie
f4b32a2bc6
Optimised tests by removing unused variables and adding further assertions
2013-05-08 13:34:05 -07:00
Alex Bilbie
437833cd32
Renamed AuthServer to Authorization, renamed ResourceServer to Resource. Updated all tests and other files
2013-05-08 11:42:23 -07:00
Alex Bilbie
f4b955ccff
Updated tests for new namespace
2013-05-08 11:06:21 -07:00
Alex Bilbie
037fd6e4f7
Test for setRefreshTokenTTL
2013-05-08 10:44:03 -07:00
Alex Bilbie
0b927ddfbb
Test for setAuthTokenTTL
2013-05-08 10:43:53 -07:00
Alex Bilbie
d6932cbb5e
Renamed get/setExpiresIn to get/setAccessTokenTTL
2013-05-08 10:35:13 -07:00
Alex Bilbie
5df1338046
New test for getGrantType to test for exception
2013-05-06 15:42:11 -07:00
Alex Bilbie
5d7e0d67cc
Updated tests for custom expires in
2013-05-06 15:36:59 -07:00
Alex Bilbie
1ca8a4f4c3
Updated authserver tests
2013-05-06 11:09:36 -07:00
Alex Bilbie
9349425ecd
Fixed ResourceServerTest.php
2013-05-06 10:28:49 -07:00
Alex Bilbie
9c9db978c6
Move authorisation code grant stuff into own grant
2013-03-31 13:37:02 +01:00
Alex Bilbie
d53abc661c
getExceptionHttpHeaders() unit tests
2013-03-27 14:27:06 +00:00
Alex Bilbie
28f85e3bea
Fixed broken unit test. Fixes #28
2013-03-27 13:29:11 +00:00
Alex Bilbie
be478561b6
Fixed unit tests following 74d9946db3
2013-03-22 16:28:45 +00:00
Alex Bilbie
521e5b22aa
Updated unit tests
2013-03-22 12:43:53 +00:00
Alex Bilbie
f4cdfa91c1
Updated Password grant
2013-03-22 11:41:04 +00:00
Alex Bilbie
fe6ecb1dcf
Added test_issueAccessToken_HTTP_auth(). Fixes #22
2013-03-22 11:08:52 +00:00
Alex Bilbie
0bf2a5333a
Added test_scopeParamRequired()
2013-03-22 11:07:55 +00:00
Alex Bilbie
ecf2f2b9ea
Updated ResourceServerTest
2013-03-22 10:37:01 +00:00
Alex Bilbie
fb518715ce
Updated authserver tests
2013-03-21 16:25:44 +00:00
Michael Gooden
6c34535155
First test case.
...
Signed-off-by: Michael Gooden <michael@bluepointweb.com>
2013-03-21 14:47:32 +00:00
Alex Bilbie
07c07ccb5e
Removed static functions, inject authserver instance into grants
2013-03-06 16:59:18 +00: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
Alex Bilbie
88616853c4
Fixed broken tests
2013-02-22 16:55:42 +00:00
Alex Bilbie
43d064733f
Changed all mentions of authentication to authorization server
2013-02-20 12:40:42 +00:00
Alex Bilbie
dbc80a4360
Minor fixes to tests
2013-02-19 00:40:22 +00:00
Alex Bilbie
92d9435bba
Added method to get the exception type
2013-02-15 16:29:00 +00:00
Alex Bilbie
e86d5cb3f1
Broke up grants into their own tests
2013-02-13 20:12:51 +00:00
Alex Bilbie
0f4546db47
Changed 'oauth_token' to 'access_token'
2013-02-13 17:10:44 +00:00
Alex Bilbie
a361fbab14
Finished unit tests for AuthServer
2013-02-12 16:45:45 +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
49e0088f72
Removed old unit tests
2013-02-05 16:26:55 +00:00
Alex Bilbie
37331c4dc8
Added resource server tests
2013-02-05 16:20:56 +00:00
Alex Bilbie
f481a9baeb
Bug fix
2013-02-05 15:59:44 +00:00
Alex Bilbie
e903cbee68
Update request class namespace
2013-02-05 15:55:38 +00:00
Alex Bilbie
463803f74d
Added client credentials grant function
2013-02-05 14:48:10 +00:00
Alex Bilbie
14a7142ad7
Lots more tests
2013-02-05 10:07:45 +00:00
Alex Bilbie
81f3dc9a2b
Added new auth server unit tests
2013-02-04 19:46:37 +00:00
Alex Bilbie
c7e9235db3
Added util unit tests
2013-02-04 19:46:29 +00:00
Alex Bilbie
2f010584ef
Removed old auth server unit tests
2013-02-04 19:46:21 +00:00
Daniel Horrigan
c12472857b
Changed Case of Oauth2 namespace to OAuth2 namespace
2013-01-08 16:35:29 -05:00
Alex Bilbie
5f1779c4e7
Autoload dependencies with autoloader in bootstrap.php
2013-01-02 22:32:49 +00:00
Alex Bilbie
1069507ab4
Revert require_once statements
2013-01-02 21:13:32 +00:00
Alex Bilbie
943fc1cc82
Possible fix for Travis?
2013-01-02 20:34:09 +00:00
Alex Bilbie
a158883aed
Another attempt to fix paths for travis
2013-01-02 20:32:38 +00:00
Alex Bilbie
8aba2b29b8
Better travis debugging
2013-01-02 20:24:45 +00:00
Alex Bilbie
b5e8f9206b
Fool.
2013-01-02 20:21:25 +00:00
Alex Bilbie
755a753cb5
Test include path on travis
2013-01-02 20:19:26 +00:00
Alex Bilbie
e99211db31
Moved require_once statement outside of setUp tests method
2013-01-02 20:13:02 +00: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
Alex Bilbie
0fcbeb8158
PSR fixes
2012-12-23 22:13:22 +00:00
Alex Bilbie
6eeb7e13e4
Updated unit tests
2012-12-23 22:11:33 +00:00
Alex Bilbie
38c50c00b0
PSR fixes
2012-12-23 21:39:42 +00:00
Alex Bilbie
df85c98e53
PSR fixes
2012-12-23 21:36:30 +00:00
Alex Bilbie
21f48c0491
Spacing updates
2012-11-20 15:26:04 +00:00
Alex Bilbie
3c2720ece4
Renamed exceptions
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-09-19 19:52:52 +01:00
Alex Bilbie
9844613b2d
Fixed test checks
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-09-19 19:34:05 +01:00
Alex Bilbie
b485f15e83
Fixed reference to renamed methods and properties
2012-08-27 16:02:35 +01:00
Alex Bilbie
8f20659f1d
Check for correct exception messages
2012-08-27 15:25:59 +01:00
Alex Bilbie
7341d5ddc8
Moaaaare tests!
2012-08-27 15:25:41 +01:00
Alex Bilbie
5da9088410
Assert that mock database objects are proper instances of their interfaces
2012-08-27 14:43:12 +01:00
Alex Bilbie
337b2e0a92
Marked test_init_header as incomplete
2012-08-27 14:32:06 +01:00
Alex Bilbie
3ab511f2f7
Spacing fix
2012-08-27 14:24:32 +01:00
Alex Bilbie
3e7b471e75
Lots of beautiful tests
2012-08-27 14:23:50 +01:00
Alex Bilbie
87ec05dba6
Corrected namespace
2012-08-24 12:24:55 +01:00
Alex Bilbie
b987c71820
Renamed test classes
2012-08-24 12:23:16 +01:00
Alex Bilbie
81a7322933
Started resource server unit tests
...
TODO: authentication header test
2012-08-23 12:22:39 +01:00
Alex Bilbie
66ee8df5b1
Added database mock for resource tests
2012-08-23 12:22:16 +01:00
Alex Bilbie
30ef11c1d7
ALL OF THE TESTS!
2012-08-06 15:32:35 +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
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