Alex Bilbie
a0d5d5817b
Updated AuthCodeEntity
2015-04-05 21:57:04 +01:00
Alex Bilbie
d468cbf600
Updated AuthCodeRepositoryInterface
2015-04-05 21:56:42 +01:00
Alex Bilbie
be14b3a2df
Updated namespace
2015-04-05 21:14:22 +01:00
Alex Bilbie
1f1f0d8f15
Added PasswordGrantProvider to container
2015-04-05 21:14:06 +01:00
Alex Bilbie
8fcf93c489
Removed unused method
2015-04-05 21:13:53 +01:00
Alex Bilbie
bdd71743cd
Added knowledge of UserRepository
2015-04-05 21:13:45 +01:00
Alex Bilbie
77b5282b46
Namespace updates
2015-04-05 21:13:15 +01:00
Alex Bilbie
e88d802918
Added UserEntityInterface
2015-04-05 21:13:04 +01:00
Alex Bilbie
61ab070692
Renamed ClientCredentialsGrantServerProvider to ClientCredentialsGrantProvider
2015-04-05 21:12:55 +01:00
Alex Bilbie
d3ed454881
Added PasswordGrantProvider
2015-04-05 21:12:26 +01:00
Alex Bilbie
b5bbf8332f
Added JsonWebTokenType
2015-04-05 21:12:05 +01:00
Alex Bilbie
110d5ce76f
Respond with json content-type header
2015-04-05 21:11:51 +01:00
Alex Bilbie
eabcf82268
Added UserRepositoryInterface
2015-04-05 21:10:50 +01:00
Alex Bilbie
6a78d53d03
Updated grants
2015-04-05 21:10:41 +01:00
Alex Bilbie
b831d19f8d
Renamed interface
2015-04-05 21:10:18 +01:00
Alex Bilbie
721e52c5d9
Renamed response types to token types
2015-04-05 21:10:06 +01:00
Alex Bilbie
15cef6ba16
Code tidy
2015-04-05 18:16:26 +01:00
Alex Bilbie
72b741d7c9
Added generateHttpResponse method to exception
2015-04-05 18:16:21 +01:00
Alex Bilbie
26c1abdd3c
Remove client secret propety on entity
2015-04-05 17:13:55 +01:00
Alex Bilbie
d63efc8dbf
Updated grant type interface
2015-04-05 17:05:57 +01:00
Alex Bilbie
1e39f1d84a
Updated abstract server
2015-04-05 17:03:13 +01:00
Alex Bilbie
0b66fd1948
First commit of new server class
2015-04-05 17:03:06 +01:00
Alex Bilbie
f1da0d2943
Added ClientCredentialsGrantServerProvider
2015-04-05 17:01:41 +01:00
Alex Bilbie
f964fd2962
Updated abstract grant and client credentials grant
2015-04-05 17:01:19 +01:00
Alex Bilbie
36a1a430b5
Updated response types
2015-04-05 17:01:00 +01:00
Alex Bilbie
3721ecb40a
Updated repository interfaces
2015-04-05 17:00:43 +01:00
Alex Bilbie
f357602090
Removed old traits
2015-04-05 14:03:34 +01:00
Alex Bilbie
a48630c837
New entities, traits and interfaces
2015-04-05 14:03:25 +01:00
Alex Bilbie
171be1c422
Updated .gitignore and .gitattributes
2015-04-05 13:59:38 +01:00
Alex Bilbie
a73322fb43
Renamed namespace Util > Utils
2015-04-04 15:42:12 +01:00
Alex Bilbie
027971776b
Namespace renamed TokenType > TokenTypes
2015-04-04 15:41:53 +01:00
Alex Bilbie
5d7eeb0512
Spelling fix
2015-03-01 21:29:52 +00:00
Alex Bilbie
742b51c2cd
Removed domain events
2015-03-01 21:29:47 +00:00
Alex Bilbie
cc7596f3b3
Renamed storage to repository
2015-02-22 19:44:26 +00:00
Hannes Van De Vreken
dd795a82f4
Changed the order and added missing throws
2015-01-23 11:21:12 +01:00
Hannes Van De Vreken
166362d3cd
Boyscouting the php docs to always use FQCNs
2015-01-23 11:17:19 +01:00
Scott Arciszewski
612775466c
Remove side-effects in hash_equals()
...
This is functionally identical, but without the side-effect of defining a function in the current namespace.
Also, it uses absolute function reference (`\hash_equals` instead of `hash_equals`) because if someone defined `League\OAuth2\Server\TokenType\hash_equals()` elsewhere, it would try that first.
Kudos for using `hash_equals()` in your original design for this feature. Many OAuth2 implementations neglect this nuance :)
2015-01-01 01:34:22 -05:00
Alex Bilbie
282bb20cc8
Fix docblocks + method name
2014-12-27 23:00:11 +00: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
72a5c1794a
Remove unused namespace
2014-12-27 22:50:13 +00:00
Alex Bilbie
707c85b0d6
Fixes and tests
2014-12-27 22:26:31 +00:00
Alex Bilbie
c56562b0b8
PSR fixes
2014-12-27 21:38:01 +00:00
Alex Bilbie
17be6f4549
Added MacTokenInterface
2014-12-27 21:35:45 +00:00
Alex Bilbie
b50fbff1e3
Update docblock
2014-12-27 21:35:45 +00:00
Alex Bilbie
7375a348c6
PHP code fix
2014-12-27 21:35:45 +00:00
Alex Bilbie
ae5dd9ce65
Added MAC TokenType
2014-12-27 21:35:45 +00:00
Alex Bilbie
f9e56ff62a
Added MAC storage getter and setter
2014-12-27 21:35:45 +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
mortenhauberg
60bd334b46
Changed "paremter" to "parameter"
2014-12-16 19:04:03 +01:00
Regan
d32bfaa757
Prevent duplicate session in auth code grant
...
The session already exists in the database, so we don't need to save it again. Doing so results in the session used for the auth code hanging around in the database with nothing associated to it, while the access token is associated to a new session caused by the `save()` method creating a duplicate. Fixes #266 .
2014-12-15 15:09:36 +13:00