9372cc85d0
Added getAuthCodeScopes() method
2013-05-10 16:50:34 -07:00
accb80289f
Added associateAuthCodeScope() method
2013-05-10 16:50:13 -07:00
ce51821043
If rotateRefreshTokens() is true then associate new access tokens
2013-05-10 16:13:06 -07:00
eac33d50b3
Added missing semicolon
2013-05-10 16:12:43 -07:00
2552b73b17
Added rotateRefreshTokens() method
2013-05-10 16:00:40 -07:00
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
b88ef82563
Fixed two probems in access token check
...
1) The method returned the wrong result in case when the access token itself contained the string "Bearer".
2) When using cURL, the request is sometimes send twice (in my case when the first request returned a 404 error), and the Authorization header of the second request is doubled, so that you get a "Authorization: Bearer XXX, Bearer XXX". This case is checked now. (BTW: Tested with the current PHP version 5.4.15 on Windows.)
2013-05-10 20:00:01 +02:00
41a7125370
Accidentally used PHP 5.4 style bracket
2013-05-09 11:48:21 -07:00
f4bcfee687
Update associated scopes if requested in refresh access token. Fixes #47
2013-05-09 11:42:28 -07:00
6d8eb9d05e
Added removeRefreshToken method to SessionInterface
2013-05-09 11:40:29 -07:00
76f2f6a5e1
Don't delete old sessions when issuing new access tokens using the Password or Client Credential grants. Fixes #32
2013-05-09 10:43:44 -07:00
d677b765b2
Renamed scopes.key to scopes.scope. Updated ScopeInterface and PDO/Scope. Fixes #45
2013-05-09 10:23:41 -07:00
7035792325
Allow for multiple default scopes. Fixes #42
2013-05-09 10:15:36 -07:00
351c2e97ea
If scope parameter is required and there are not requested scopes AND there is no default scope set then fail
...
Should have been included in with previous commit
2013-05-09 10:06:44 -07:00
ddefb2ee16
Set the scope parameter to not be required by default. Fixes #43
2013-05-09 10:02:41 -07:00
69af252844
Fixed docblock
2013-05-09 09:45:10 -07:00
77fbb2a851
Removed docblocks from session PDO class
2013-05-09 07:55:54 -07:00
c0683586e2
A refresh token should be bound to a client ID
2013-05-09 07:55:10 -07:00
dbe21cc5a7
Removed null as default for parameters
2013-05-08 19:36:00 -07:00
972e517280
Added example queries and expected responses
2013-05-08 18:37:34 -07:00
ca9760cd36
Updated docblocks and example queries in scope and client storage interfaces
2013-05-08 18:16:24 -07:00
1e57533127
Added getClientId method
2013-05-08 18:06:18 -07:00
92e217d0ac
Show default parameters
2013-05-08 18:06:09 -07:00
707354348a
Changed scope to be a delimiter to a space as required by the spec
2013-05-08 17:42:15 -07:00
46f0e6c84d
Updated docblocks
2013-05-08 17:04:01 -07:00
1dd768545a
Updated more docblocks
2013-05-08 14:10:58 -07:00
787c8c566f
Updated docblocks
2013-05-08 14:10:48 -07:00
fd10861065
Added missing docblock
2013-05-08 14:10:15 -07:00
0812ca2927
Added missing clientId variable, fixed docblock
2013-05-08 13:59:17 -07:00
a8a375ed1f
Anal code style fix
2013-05-08 13:40:15 -07:00
e2350a65b1
Removed unused functions
2013-05-08 13:24:29 -07:00
437833cd32
Renamed AuthServer to Authorization, renamed ResourceServer to Resource. Updated all tests and other files
2013-05-08 11:42:23 -07:00
1df524ae6e
Added missing docblocks
2013-05-08 11:31:38 -07:00
9d1693cf78
Fixed incorrect @link
2013-05-08 11:30:53 -07:00
5524e9b9c8
Moved files into server namespace/folder and updated docblock copyright statements
2013-05-08 11:29:24 -07:00
850473ce40
Renamed namespace to League\OAuth2\
2013-05-08 11:06:09 -07:00
56b8b7c64e
Updated associateRefreshToken to use expire time
2013-05-08 10:38:16 -07:00
d6932cbb5e
Renamed get/setExpiresIn to get/setAccessTokenTTL
2013-05-08 10:35:13 -07:00
c77484e97b
Added refresh token TTL
2013-05-08 10:34:25 -07:00
9f90cd2635
Added method to set the auth token TTL
2013-05-07 15:20:32 -07:00
8fd9e3f312
Renamed setExpiresIn method to accessTokenTTL
2013-05-07 15:16:30 -07:00
fdebbac2df
Allow grant access token expiresIn override
2013-05-06 15:04:00 -07:00
a561a9d98a
Throw an exception if a grant can't be loaded when called in getGrantType
2013-05-06 13:57:46 -07:00
38f6be2aa0
Removed unnecessary methods
2013-05-05 18:22:03 +01:00
d0abd8c295
Fixed getting of session scopes
2013-05-05 18:18:55 +01:00
9be23cf222
Added session scopes
2013-05-05 18:16:28 +01:00
90508a191d
Get scopes by access token instead of session ID
2013-05-05 18:14:27 +01:00
10d7d3cb3d
Updated response params
2013-05-05 18:11:01 +01:00
89850420f6
Updated query to return session details
2013-05-05 18:09:47 +01:00
9b73eab07c
SQL query fix
2013-05-05 18:06:00 +01:00