Alex Bilbie
51f44fdf17
Code tidy
2016-04-18 12:12:06 +01:00
Alex Bilbie
f8b2e80ef3
Removed unnecessary parameter usage
2016-04-18 12:10:57 +01:00
Alex Bilbie
fb8f47e868
Added $mustValidateSecret parameter to ClientRepositoryInterface:: getClientEntity(). Fixes #550
2016-04-18 08:32:49 +01:00
Alex Bilbie
78c2067698
Merge pull request #548 from thephpleague/analysis-z9mQxo
...
Applied fixes from StyleCI
2016-04-17 13:07:15 +01:00
Alex Bilbie
257318e524
Merge pull request #547 from lookyman/scope-fixes
...
Fix scope loading in grants
2016-04-17 13:06:57 +01:00
Alex Bilbie
77737e7894
Applied fixes from StyleCI
2016-04-17 08:06:17 -04:00
Alex Bilbie
f007e25070
Added copyright docblocks
2016-04-17 13:06:05 +01:00
Alex Bilbie
f6f39698d9
Renamed Server to AuthorizationServer
2016-04-17 12:54:25 +01:00
Lukáš Unger
3904767873
Fix scope loading in grants
2016-04-17 13:50:56 +02:00
Alex Bilbie
6205611a71
Removed unused methods
2016-04-17 12:42:42 +01:00
Alex Bilbie
08c356a1e1
Added ResourceServer class
2016-04-17 12:33:29 +01:00
Alex Bilbie
94a1c18fa9
Implict grant does not return return refresh tokens
2016-04-17 12:12:49 +01:00
Luca Degasperi
de635f826f
Update AbstractGrant.php
...
The hint is not necessary since it gets created by the exception with the parameter.
2016-04-11 15:59:47 +02:00
Alex Bilbie
3e8577f889
Merge pull request #536 from Bobselp/V5-WIP
...
less verbose exceptions for RefreshTokenGrant
2016-04-11 08:24:31 +01:00
ivyhjk
f7413c2f15
Update BearerTokenResponse.php
2016-04-10 19:05:32 -03:00
Bobselp
6e583fdf8a
less verbose exceptions for RefreshTokenGrant
...
For the LogicException you could also use `throw OAuthServerException::invalidRequest('refresh_token', 'Cannot decrypt the authorization code');`, to get the exact same error AuthCodeGrant-php throws if decryption of `code` fails there.
The second error hint provides information which doesn't help users of the API, although it is next to impossible to trigger this error due to the encryption.
2016-04-10 22:19:42 +02:00
Alex Bilbie
2328f59601
Applied fixes from StyleCI
2016-04-10 12:16:40 -04:00
Bobselp
eb7526ae97
finalize scopes for AuthCodeGrant
2016-04-10 18:07:18 +02:00
Bobselp
03e8eb6157
revoke an used auth code
2016-04-10 18:05:16 +02:00
Alex Bilbie
92a483b3bd
Improved tests
2016-04-10 16:14:01 +01:00
Alex Bilbie
5969082963
Fix tests and improve code coverate
2016-04-10 15:58:01 +01:00
Alex Bilbie
7c86d3b848
Merge branch 'V5-authorization-request-flow' of github.com:thephpleague/oauth2-server into V5-authorization-request-flow
2016-04-10 14:31:25 +01:00
Alex Bilbie
ba30e34511
Lazy set $accessTokenTTL
2016-04-10 14:31:05 +01:00
Alex Bilbie
e24dff2723
Fixed expires_in
2016-04-10 14:30:44 +01:00
Alex Bilbie
1512960d92
Applied fixes from StyleCI
2016-04-10 09:23:10 -04:00
Alex Bilbie
273ea0ba68
Updated implicit grant to use the new auth request flow
2016-04-10 14:22:56 +01:00
Alex Bilbie
096a4a2883
Remove unused params
2016-04-10 14:22:32 +01:00
Alex Bilbie
a0c4900ee7
Client is not required here because of finalizeScopes method
2016-04-10 13:53:16 +01:00
Alex Bilbie
c034c3b13c
Merge pull request #524 from thephpleague/analysis-qJ2LoW
...
Applied fixes from StyleCI
2016-04-10 11:56:33 +01:00
Alex Bilbie
634578997f
Merge pull request #523 from thephpleague/analysis-XajbB0
...
Applied fixes from StyleCI
2016-04-10 11:56:17 +01:00
Alex Bilbie
79aa1988d8
Removed HtmlResponse
2016-04-10 11:55:17 +01:00
Alex Bilbie
7c35985c1e
Applied fixes from StyleCI
2016-04-10 06:52:27 -04:00
Alex Bilbie
c75d0e0f0e
Removed templating code
2016-04-10 11:52:18 +01:00
Alex Bilbie
5d3516c7b4
Applied fixes from StyleCI
2016-04-10 06:48:46 -04:00
Alex Bilbie
d4fb00628e
Updated server methods
2016-04-10 11:48:32 +01:00
Alex Bilbie
4bc835c007
Updated AuthCodeGrant with new methods to validate and complete an authorization request
2016-04-10 11:48:21 +01:00
Alex Bilbie
fdb1d70874
Updated header key
2016-04-10 11:47:41 +01:00
Alex Bilbie
5410a42bb6
Fix to broken methods
2016-04-10 10:28:12 +01:00
Alex Bilbie
b7064befe4
Checkin
2016-04-10 10:07:08 +01:00
Alex Bilbie
44937f3600
Updated method calls
2016-04-09 16:22:22 +01:00
Alex Bilbie
76ea6b5a6c
Renamed grant type canRespondToRequest
to canRespondToAccessTokenRequest
2016-04-09 16:22:00 +01:00
Alex Bilbie
4689802c30
Renamed server respondToRequest
to respondToAccessTokenRequest
2016-04-09 16:20:30 +01:00
Alex Bilbie
2c2ef800d4
Applied fixes from StyleCI
2016-04-09 10:46:40 -04:00
Alex Bilbie
d8d49f742e
Removed unnecessary abstract classes
2016-04-09 15:46:30 +01:00
Alex Bilbie
b59106dc64
Added ClientTrait
2016-04-09 15:27:44 +01:00
Alex Bilbie
c6faa228fe
Updated references to interfaces
2016-04-09 15:25:45 +01:00
Alex Bilbie
4eee48ca4e
Moved entity interfaces into parent folder. Fixes #504
2016-04-09 15:25:32 +01:00
Alex Bilbie
00518dded7
Removed built-in entities, all functinality available using traits
2016-04-09 15:21:15 +01:00
Alex Bilbie
5ca2152313
Updated examples
2016-04-09 15:17:11 +01:00
Alex Bilbie
be9bd76f35
Added AccessTokenTrait
2016-04-09 15:09:13 +01:00
Alex Bilbie
198f4c4b6f
Merge branch 'token_from_repo' of https://github.com/frederikbosch/oauth2-server into frederikbosch-token_from_repo
...
# Conflicts:
# tests/Grant/AuthCodeGrantTest.php
# tests/Grant/ImplicitGrantTest.php
# tests/Grant/RefreshTokenGrantTest.php
2016-04-09 14:12:06 +01:00
Alex Bilbie
6f0a0cca4e
Merge pull request #498 from frederikbosch/client_user_id_replaced
...
Client identifier passed where user identifier is expected
2016-04-09 13:55:16 +01:00
Alex Bilbie
1ccfd9be32
Applied fixes from StyleCI
2016-04-09 08:53:29 -04:00
Alex Bilbie
a83c56f570
Comment improvement
2016-04-09 13:53:14 +01:00
Alex Bilbie
d7dd07cf18
Merge branch 'v5-fix' of https://github.com/assembledadam/oauth2-server into assembledadam-v5-fix
2016-04-09 13:51:57 +01:00
Alex Bilbie
0fed56a265
Merge branch 'V5-WIP' of https://github.com/frederikbosch/oauth2-server into frederikbosch-V5-WIP
...
# Conflicts:
# src/Entities/Interfaces/ClientEntityInterface.php
2016-04-09 13:48:53 +01:00
Alex Bilbie
39281a6f38
Merge branch 'repository_on_response' of https://github.com/juliangut/oauth2-server into juliangut-repository_on_response
...
# Conflicts:
# tests/ResponseTypes/BearerResponseTypeTest.php
2016-04-09 13:43:33 +01:00
Alex Bilbie
656a8d7a56
Merge pull request #502 from juliangut/passphrase
...
V5 - Handle RSA key passphrase
2016-04-09 13:40:28 +01:00
Alex Bilbie
6c942f25f4
Merge pull request #503 from juliangut/mac_token_interface
...
V5 - Remove unused mac token interface
2016-04-09 13:37:54 +01:00
Alex Bilbie
8274c56fc2
Allow multiple client redirect URIs. Fixes #511
2016-04-09 13:36:08 +01:00
Frederik Bosch
de8f6ff539
add getNewAccessToken getNewRefreshToken and getNewAuthCode to repositories
2016-04-04 10:37:06 +02:00
Adam McCann
8f69f4f9a9
Access denied on token expiry (or value before nbf/not before) - issue #506
2016-03-31 18:50:36 +01:00
Julián Gutiérrez
4d2ccac8ed
remove unused mac token interface
2016-03-29 09:31:34 +02:00
Julián Gutiérrez
197657f2b9
handle RSA key passphrase
2016-03-28 16:42:34 +02:00
Julián Gutiérrez
e513b42117
remove access token repository from response types
2016-03-28 12:10:51 +02:00
Frederik Bosch
b1ce1f872b
client identifier passed where user identifier is expected
2016-03-25 17:11:13 +01:00
Alex Bilbie
1c47ec51f8
Merge pull request #494 from frederikbosch/double_persis
...
prevent double persist of token when doing refresh grant
2016-03-24 17:34:47 +00:00
Frederik Bosch
fbf4388b01
prevent double persist of token when doing refresh grant
2016-03-24 17:24:17 +01:00
Alex Bilbie
b1cf6a8436
Fix for bad hint
2016-03-24 14:51:44 +00:00
Frederik Bosch
d8e1e0e00e
remove unnecessary methods from interfaces
2016-03-24 15:01:55 +01:00
Alex Bilbie
fe0ed765a5
Added setTemplateRenderer method
2016-03-24 13:56:31 +00:00
Alex Bilbie
630a92b45f
Applied fixes from StyleCI
2016-03-24 06:07:20 -04:00
Alex Bilbie
115237bc1a
Added missing return statement
2016-03-24 10:04:48 +00:00
Alex Bilbie
6383a58755
Updated scope validation
2016-03-24 10:04:15 +00:00
Alex Bilbie
267bd3c5d4
Applied fixes from StyleCI
2016-03-23 14:50:27 -04:00
Alex Bilbie
a18b8c57b2
Fix broken tests
2016-03-23 18:50:14 +00:00
Alex Bilbie
55ff59edf4
Merge branch 'V5-WIP' of github.com:thephpleague/oauth2-server into V5-WIP
2016-03-23 18:36:49 +00:00
Alex Bilbie
a49c762683
Remove injected array of scopes
2016-03-23 18:36:43 +00:00
Alex Bilbie
b5b5d9f347
Added finalizeScopes method to ScopeRepositoryInterface
2016-03-23 18:36:23 +00:00
Alex Bilbie
864a27f2c8
Applied fixes from StyleCI
2016-03-23 08:54:30 -04:00
Alex Bilbie
a698a4da7e
Added RequestEvent
2016-03-23 12:54:17 +00:00
Alex Bilbie
95cdaae17f
Removed unused method
2016-03-22 17:07:30 +00:00
Alex Bilbie
61986db5ee
Merge branch 'V5-WIP' of github.com:thephpleague/oauth2-server into V5-WIP
2016-03-22 16:29:08 +00:00
Alex Bilbie
878afeb9f9
ClientRepository implementations are now responsible for dealing with client secret
2016-03-22 16:29:04 +00:00
Alex Bilbie
945731cb39
Applied fixes from StyleCI
2016-03-22 11:11:39 -04:00
Alex Bilbie
09770dc537
Inject client into getUserEntityByUserCredentials method
2016-03-22 15:11:20 +00:00
Alex Bilbie
ca54a387c8
Merge branch 'V5-WIP' of github.com:thephpleague/oauth2-server into V5-WIP
2016-03-22 14:45:14 +00:00
Alex Bilbie
e27b13ee7d
Accept scopes as reference
2016-03-22 14:44:21 +00:00
Alex Bilbie
8685006743
Applied fixes from StyleCI
2016-03-22 10:18:21 -04:00
Alex Bilbie
400eae153b
Added grant and scopes to UserRepository getUserEntityByUserCredentials method
2016-03-22 14:18:02 +00:00
Julián Gutiérrez
4b775fe241
include CryptTrait tests, allow Server::respondToRequest trhow exceptions and fix ResposeType tests
2016-03-18 00:25:32 +01:00
Julián Gutiérrez
8196f5c832
code against interface
2016-03-17 21:33:04 +01:00
Julián Gutiérrez
890fdeba16
CryptTrait tests
2016-03-17 21:18:28 +01:00
Alex Bilbie
51a1a75d37
Applied fixes from StyleCI
2016-03-17 10:37:48 -04:00
Alex Bilbie
251190d828
Fix #468 and #473
2016-03-17 14:37:21 +00:00
Alex Bilbie
3af75729b8
Applied fixes from StyleCI
2016-03-17 07:22:59 -04:00
Alex Bilbie
7b8d9c9af3
Added missing RendererInterface
2016-03-17 11:22:04 +00:00
Alex Bilbie
15b6506644
No need to use Zend\Diactoros\Stream
2016-03-17 11:21:53 +00:00
Alex Bilbie
bd12c8b1a9
Fix exception usage
2016-03-17 11:18:59 +00:00
Alex Bilbie
c3c49c83f9
Merge pull request #472 from juliangut/templating
...
V5 - Template renderer holds template related information
2016-03-17 10:49:14 +01:00