Commit Graph

154 Commits

Author SHA1 Message Date
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