Alex Bilbie
0a3215be8e
Added entity trate
2014-07-11 15:18:47 +01:00
Alex Bilbie
954f29f879
Added league/event and implemented SessionOwnerEvent
2014-07-11 15:13:28 +01: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
Fahmi Ardi
92779ad078
missing clientSecret variable
2014-07-03 15:03:58 +07:00
Fahmi Ardi
83c7dea1cc
allowing client crendentials to be sent as Basic authentication
2014-07-03 14:58:13 +07:00
Alex Bilbie
33c68a2103
More updates to relational example
2014-06-23 08:20:34 +01:00
Alex Bilbie
9af1d2a201
100% test coverage
2014-06-20 14:29:47 +01:00
Alex Bilbie
f24d1be3e9
Merge branch 'refs/heads/v4.0.0-WIP' into v4.0.0-relational-example
2014-06-20 14:16:40 +01:00
Alex Bilbie
80802e5df4
Merge branch 'v4.0.0-WIP' of github.com:php-loep/oauth2-server into v4.0.0-WIP
2014-06-20 14:16:09 +01:00
Dustin Wheeler
c1269a97d6
Adds create method to AuthCodeInterface. Relates to #160 .
2014-05-29 19:27:45 -07:00
Alex Bilbie
5e4cd98706
Use US spelling
2014-05-23 16:26:29 +01:00
Andrew Cairns
400d4d8f1e
Fixing Bearer case for consistency
2014-05-20 17:13:29 +01:00
Alex Bilbie
81e9e7364b
Removed example SQL
2014-05-09 10:08:00 +01:00
Alex Bilbie
11664e6d37
Added ability to cast token as a string
2014-05-09 08:16:02 +01:00
Alex Bilbie
d40ee11ef5
Scope entity is json serializable
2014-05-08 11:55:04 +01:00
Alex Bilbie
b9cedc8b93
PSR fixes
2014-05-08 11:52:51 +01:00
Alex Bilbie
58adefa7d0
Removed unnecessary parameter
2014-05-08 10:29:52 +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
49650d1ae9
Removed Mac token type for now
2014-05-07 17:21:32 +01:00
Alex Bilbie
aae99c2487
Use token type to determine access token in header
2014-05-07 17:21:24 +01:00
Alex Bilbie
0d293e7c30
Merge branch 'refs/heads/v4.0.0-WIP' into 4.0.0-156-token-types
2014-05-07 17:11:46 +01:00
Alex Bilbie
7516606fd3
Set default token type as bearer for Resource Server
2014-05-07 17:10:52 +01:00
Alex Bilbie
87fbcb19af
Use the correct variable
2014-05-07 17:09:45 +01:00
Alex Bilbie
6300cd5d72
Set the default token type as Bearer
2014-05-07 17:09:34 +01:00
Alex Bilbie
0b047fd8e4
Update token types
2014-05-07 17:09:19 +01:00
Luca Degasperi
07c04d15d7
updated calls to proper request methods
2014-05-06 14:30:25 +02:00
Luca Degasperi
95d068e818
Added a missing use statement
2014-05-06 13:52:50 +02:00
Alex Bilbie
c5ffd05eee
First commit of token types
2014-05-03 14:03:02 +01:00
Alex Bilbie
f7e68d6e10
Fixed auth code entity storage calls
2014-05-03 11:40:39 +01:00
Alex Bilbie
719b87a40c
Added missing methods to auth code storage interface
2014-05-03 11:39:18 +01:00
Alex Bilbie
19bd476395
Fix silly mistake
2014-05-03 11:13:36 +01:00
Alex Bilbie
b82551c97d
PHPCS fixes
2014-05-03 11:08:33 +01:00
Alex Bilbie
ed7f5370ca
More CS fixer changes
2014-05-03 10:53:57 +01:00
Alex Bilbie
97e7a00bca
CS fixer changes
2014-05-03 10:53:43 +01:00
Alex Bilbie
ffc25fb276
Renamed Grants
2014-05-02 17:24:55 +01:00
Alex Bilbie
97fd115530
Updated with new entity names
2014-05-02 17:21:53 +01:00
Alex Bilbie
228144a701
Inject server
2014-05-02 15:14:46 +01:00
Alex Bilbie
184fac507b
Bug fix for OAuthException
2014-05-02 15:14:36 +01:00
Alex Bilbie
82c10c32fd
Removed FQN
2014-05-02 15:14:25 +01:00
Alex Bilbie
782f43c73a
Updated entity class names
2014-05-02 15:14:12 +01:00
Alex Bilbie
bdd2bc322c
Renamed entities (added Entity to the end of class name)
2014-05-02 15:12:00 +01:00
Alex Bilbie
e5315dc016
Test fixes
2014-05-01 14:57:12 +01:00
Alex Bilbie
8b4b884a03
Pass the token instead of string
2014-05-01 14:47:01 +01:00
Alex Bilbie
f78caa24bb
Renamed method to be more obvious
2014-05-01 14:46:43 +01:00
Alex Bilbie
79b1e39798
Removed special case for cURL
2014-05-01 14:46:35 +01:00
Alex Bilbie
797ed66eda
Added getBySession
2014-05-01 14:46:22 +01:00
Alex Bilbie
16bdc36ccb
Accept token instead of strings
2014-05-01 14:45:38 +01:00
Alex Bilbie
b5f02d0739
Inject the access token object
2014-05-01 14:44:13 +01:00
Alex Bilbie
9f1f0cc3bc
Updates to exceptions
2014-05-01 14:32:54 +01:00
Alex Bilbie
6981ced972
Updated thrown exceptions
2014-04-25 11:24:48 +01:00
Alex Bilbie
019dfa8836
Updated thrown exceptions
2014-04-25 11:24:42 +01:00
Alex Bilbie
7f6ca35628
Updated exceptions
2014-04-25 11:24:33 +01:00
Alex Bilbie
e1a7f576e4
Moved exception code into new exception classes
2014-04-25 11:24:25 +01:00
Alex Bilbie
647de842ff
Updated exceptions
2014-04-25 10:01:01 +01:00
Alex Bilbie
d7ddfe6452
Updated docblock
2014-04-06 22:01:56 +01:00
Alex Bilbie
5893ba4e8e
Fixes #151
2014-04-06 21:08:35 +01:00
Alex Bilbie
b2c07aa68f
Renamed method make
to generate
2014-04-06 21:08:20 +01:00
Alex Bilbie
29b0389a75
PSR-4 baby!
2014-04-06 19:17:56 +01:00
Alex Bilbie
2aa318cfd7
AuthCode grant
2014-04-06 19:14:46 +01:00
Alex Bilbie
82f7c7abaf
Removed unused method
2014-04-06 19:14:37 +01:00
Alex Bilbie
2d90540531
Spelling fix
2014-04-06 19:14:29 +01:00
Alex Bilbie
de681b1ebf
RefreshToken is already taken so use RT
2014-04-06 19:14:16 +01: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
9ac56ad547
Updated @link
2014-03-09 20:05:38 +00:00
Alex Bilbie
c60b29d201
First commit of AuthCode grant and entity
2014-03-09 20:03:05 +00:00
Alex Bilbie
2a524efff5
Bug fix
2014-03-09 20:02:22 +00:00
Alex Bilbie
22794d49d1
Removed old implicit grant
2014-03-09 19:35:53 +00:00
Alex Bilbie
4e37d9bb61
Updated Refresh Token and Password grants
2014-03-09 19:35:23 +00:00
Alex Bilbie
af06f9f3ea
Updated copyright
2014-03-09 19:34:37 +00:00
Alex Bilbie
aef86227da
Updated copyright
2014-03-09 19:34:23 +00:00
Phil Sturgeon
f83a9a7fa4
Support Authorization header passed as ENV var
...
Some hosts (at this point I only know of Fortrabbit) require Authorization headers to be passed as an environment variable, which PHP will then shove into . See more: http://fortrabbit.com/docs/essentials/quirks-and-constraints\#authorization-header
2014-02-26 17:28:17 -05:00
Alex Bilbie
d10cc5040d
Inject server into storage
2014-02-24 16:50:19 +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
e4622b1f65
Check for headers only by default, also allow a token to be passed in
2014-01-17 17:17:13 +00:00
Alex Bilbie
c5f48782e6
$accessToken should be protected not public
2014-01-17 17:16:52 +00:00
Alex Bilbie
9de979a4ee
Little bug fix
2014-01-17 10:37:05 +00:00
Alex Bilbie
20df1f50a6
Some initial grant testing
2014-01-17 10:36:57 +00:00
Alex Bilbie
11e0b004bd
Numerous updates
2014-01-16 16:50:16 +00:00
Alex Bilbie
3cd5f50e64
Renamed Entities/ folder to Entity/
2014-01-16 16:49:46 +00:00
Alex Bilbie
69571bc8ef
Little fixes
2014-01-10 17:30:18 +00:00
Alex Bilbie
ca3b7d51df
Added abstract server
2014-01-10 17:30:12 +00:00
Alex Bilbie
ac2beb08d6
Lots of logic implementation fixes
2014-01-10 12:30:13 +00:00
Alex Bilbie
0250d8d4d1
Too many changes to describe
2014-01-08 16:15:29 +00:00
Alex Bilbie
2d90a09f65
Scopes no longer have names
2013-12-31 15:36:02 +00:00
Alex Bilbie
e9d867ba95
Removed id
property from token entities, just use token
now
2013-12-31 15:35:51 +00:00
Alex Bilbie
2c732a6647
PHP error fix
2013-12-31 15:35:13 +00:00
Alex Bilbie
9d6ecfae46
Little changes
2013-12-26 20:22:31 +00:00
Alex Bilbie
a3863fec2e
Updated authorisation server
2013-12-24 17:02:58 +00:00
Alex Bilbie
5cd420bd5d
Updated resource server
2013-12-24 17:02:49 +00:00
Alex Bilbie
e62bc4e98d
Updated storage interfaces
2013-12-24 17:02:34 +00:00
Alex Bilbie
7a38187076
Updated grants
2013-12-24 17:01:56 +00:00
Alex Bilbie
40490db27f
Added ServerException
2013-12-24 17:01:29 +00:00
Alex Bilbie
bc74aff46d
Added entities
2013-12-24 17:01:11 +00:00
Alex Bilbie
337cb088e9
Delete some old files we don't care about
2013-12-24 17:01:02 +00:00
Alex Bilbie
9e5bd4cd67
First commit of Session
2013-12-16 23:47:53 +00:00
Alex Bilbie
427ae50704
First commit of AccessToken
2013-12-16 23:47:47 +00:00
Alex Bilbie
449ba5005c
First commit of updated ResourceServer
2013-12-16 23:47:03 +00:00
Anderson Müller
9b9cf79f39
Typo in docblock
2013-12-06 11:17:41 +01:00
Alex Bilbie
dba976d6ac
Fixes #108 , fixes #114 - ucfirst headers
2013-12-05 20:57:22 +00:00
Alex Bilbie
0db8850e81
Merge branch 'refs/heads/develop' into feature/no-inject-server
...
Conflicts:
src/League/OAuth2/Server/Grant/GrantTrait.php
2013-12-05 20:28:31 +00:00
Alex Bilbie
262ce23fb9
No longer need to inject auth server into grant
2013-12-05 20:25:50 +00:00
Phil Sturgeon
1419ba8cdc
Added GrantTrait::setIdentifier
...
I found it useful to be able to set the identifier so I could "alias" one for deprecation. Hopefully no issues here @alexbilbie
2013-12-04 17:23:19 -05:00
Alex Bilbie
031cf3064a
Moved some grant related functions into a trait to reduce duplicate code
2013-12-02 18:42:54 +00:00
Alex Bilbie
5ec2c24b5c
Removed build in DB providers, will be included in separate repos
2013-11-29 12:23:05 +00:00
Alex Bilbie
44408b873f
Make sure $this is returned
2013-11-25 23:58:42 +00:00
jlehner
d3158a830b
Update Implicit Grant Type with the following:
...
- Added accessTokenTTL variable and setter method
- Updated response in the completeFlow method to include all required parameters per OAuth2 spec
- completeFlow function accounts for local grant TTL override
2013-09-26 14:40:56 -04:00
Alex Bilbie
4a71c376b8
Merge branch 'refs/heads/master' into develop
...
Conflicts:
.travis.yml
README.md
2013-09-26 11:18:10 +01:00
Daniel Schniepp
23627c659e
Fixed issues with returns and columns
2013-09-25 16:59:45 +02:00
Alex Bilbie
bee71c1e83
Merge pull request #94 from daveWid/request-interface-cleanup
...
Request interface cleanup
2013-09-08 03:23:26 -07:00
Alex Bilbie
ad97273455
Gave "bearer" a capital "B". Fixes #96
2013-09-07 18:00:13 +01:00
Alex Bilbie
0b55dc4c01
Gave "bearer" a capital "B"
2013-09-07 17:59:44 +01:00
Alex Bilbie
4985770d07
Gave "bearer" a capital "B"
2013-09-07 17:59:34 +01:00
Dave Widmer
a2bf4e0dfb
Removing constructor and buildFromGlobals from RequestInterface. Fixes : #88
2013-09-06 09:14:24 -04:00
Matthew Hailwood
e5dc3001c4
Update ClientInterface.php
2013-09-04 12:43:12 +12:00
Matthew Hailwood
69531c3eb5
Adding auto_approve field to client details array.
2013-09-04 12:38:45 +12:00
Dave Widmer
69710a5909
Normalizing headers to a Ucfirst-With-Dashes format.
2013-08-20 11:40:02 -04:00
nhorvath
f612e105bd
Update Implicit.php
...
Fix typo in class name. Change "Implict" to "Implicit"
2013-08-02 14:51:13 -04:00
Philip Brown
f1567df802
Set $grantType default
2013-07-17 11:40:06 +01:00
Alex Bilbie
307964d571
Fixed missing $this
2013-06-18 18:27:34 +01:00
Alex Bilbie
a1ca904255
Merge branch 'develop' of github.com:php-loep/oauth2-server into develop
2013-06-18 18:17:02 +01:00
Alex Bilbie
6e045afa26
Merge pull request #70 from gstjohn/master
...
Fix to docblocks
2013-06-08 04:28:34 -07:00
Garrett St. John
8f15158d1c
Fix to docblocks
2013-06-06 14:00:17 -07:00
Garrett St. John
ca4e749986
Fix to docblocks
2013-06-06 13:09:15 -07:00
Jason Grimes
e5a48c929b
Make determineAccessToken() public in order to check if an access token was sent before checking its validity.
2013-06-05 23:59:29 -04:00
Alex Bilbie
829cef936a
mErge branch 'feature/fluent' into develop
2013-06-02 14:59:31 +01:00
Alex Bilbie
f78e05cb08
Anal space fixes
2013-06-02 14:59:05 +01:00
Alex Bilbie
0999bf4de3
Added missing functions
2013-06-02 14:58:59 +01:00
Alex Bilbie
e442253e26
Anal spacing fixes and removed PHP5.4+ specific array syntax
2013-06-02 14:58:52 +01:00
Alex Bilbie
4c4155fdac
Added \Illuminate\Support\Facades\DB namespace
2013-06-02 14:54:49 +01:00
Alex Bilbie
d901e90602
Added \Illuminate\Support\Facades\DB namespace
2013-06-02 14:41:38 +01:00
Alex Bilbie
32a7ed38a9
Updated PSR compliance. Added Illuminate\Support\Facades\DB namespace
2013-06-02 14:40:59 +01:00
Alex Bilbie
9dec6c4bfe
Added Doctrine/DBAL implementation of storage classes (thanks @inanimatt)
2013-06-02 14:25:06 +01:00
Alex McRoberts
a4a8f6e661
This fixes #57 . By passing in a conditional flag refering to headersOnly, the library would stil respect RFC6749 Section 7 and RFC6750 Section 2.
2013-05-27 21:27:30 -07:00
Alex Bilbie
47c24e3181
Corrected array key call. Fixes #63
2013-05-27 20:33:07 +02:00
Alex Bilbie
4d36ebd3e7
Added namespaces
2013-05-14 09:50:40 +01:00
Alex Bilbie
0b3a9dc888
Converted PHP 5.4 array syntax to old-skool syntax
2013-05-14 09:46:14 +01:00
Alex Bilbie
1fcdbf45b2
Removed docblocks
2013-05-14 09:45:19 +01:00
Alex Bilbie
94a064e2f4
Added fluent storage from #54
2013-05-14 09:44:12 +01:00
Alex Bilbie
92b6ce3335
Added default value for final argument in ClientInterface::getClient(). Fixes #56
2013-05-14 09:00:36 +01:00
Alex Bilbie
ee9549287e
Updated docblocks
2013-05-14 08:59:53 +01:00
Alex Bilbie
4b3e0bf668
Fixed semantic meaning of requireScopeParam()
and requireStateParam()
by changing their default value to true
2013-05-10 23:01:54 -07:00
Alex Bilbie
05d4b68586
Optimised regex and re-added trim() following conversation in #52
2013-05-10 23:00:47 -07:00
Alex Bilbie
ef4a138237
Fixed associateAuthCodeScope() query
2013-05-10 17:29:28 -07:00
Alex Bilbie
d531a37412
Don't add scope IDs
2013-05-10 17:26:23 -07:00
Alex Bilbie
ba2dc90f3b
Altered associateScope logic
2013-05-10 17:08:20 -07:00
Alex Bilbie
7373f312da
Updated variable name
2013-05-10 17:08:10 -07:00
Alex Bilbie
a01810d8fa
Updated validateAuthCode in PDO Session
2013-05-10 17:07:29 -07:00
Alex Bilbie
3ea3eb5ebd
Implemented getAuthCodeScopes() in PDO Session
2013-05-10 17:07:06 -07:00
Alex Bilbie
11022e16ef
Updated validateAuthCode() in SessionInterface
2013-05-10 17:06:44 -07:00
Alex Bilbie
8d06a7b685
Updated getAuthCodeScopes() in SessionInterface
2013-05-10 17:06:05 -07:00
Alex Bilbie
c66c8092f9
Revert "Return the session_id for validateAuthCode instead of an array"
...
This reverts commit 51138f8738
.
2013-05-10 16:57:39 -07:00
Alex Bilbie
591139f44d
Added associateAuthCodeScope to PDO
2013-05-10 16:57:18 -07:00
Alex Bilbie
410ad09b5c
Updated PDO associateAuthCode
2013-05-10 16:56:38 -07:00
Alex Bilbie
51138f8738
Return the session_id for validateAuthCode instead of an array
2013-05-10 16:53:52 -07:00
Alex Bilbie
aa8d38108f
Associate scopes to auth codes in separate method. Creating an auth code now returns an ID
2013-05-10 16:53:21 -07:00
Alex Bilbie
9372cc85d0
Added getAuthCodeScopes() method
2013-05-10 16:50:34 -07:00
Alex Bilbie
accb80289f
Added associateAuthCodeScope() method
2013-05-10 16:50:13 -07:00
Alex Bilbie
ce51821043
If rotateRefreshTokens() is true then associate new access tokens
2013-05-10 16:13:06 -07:00
Alex Bilbie
eac33d50b3
Added missing semicolon
2013-05-10 16:12:43 -07:00
Alex Bilbie
2552b73b17
Added rotateRefreshTokens() method
2013-05-10 16:00:40 -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
ziege
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
Alex Bilbie
41a7125370
Accidentally used PHP 5.4 style bracket
2013-05-09 11:48:21 -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
6d8eb9d05e
Added removeRefreshToken method to SessionInterface
2013-05-09 11:40:29 -07:00
Alex Bilbie
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
Alex Bilbie
d677b765b2
Renamed scopes.key to scopes.scope. Updated ScopeInterface and PDO/Scope. Fixes #45
2013-05-09 10:23:41 -07:00
Alex Bilbie
7035792325
Allow for multiple default scopes. Fixes #42
2013-05-09 10:15:36 -07:00
Alex Bilbie
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
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
69af252844
Fixed docblock
2013-05-09 09:45:10 -07:00
Alex Bilbie
77fbb2a851
Removed docblocks from session PDO class
2013-05-09 07:55:54 -07:00
Alex Bilbie
c0683586e2
A refresh token should be bound to a client ID
2013-05-09 07:55:10 -07:00
Alex Bilbie
dbe21cc5a7
Removed null as default for parameters
2013-05-08 19:36:00 -07:00
Alex Bilbie
972e517280
Added example queries and expected responses
2013-05-08 18:37:34 -07:00
Alex Bilbie
ca9760cd36
Updated docblocks and example queries in scope and client storage interfaces
2013-05-08 18:16:24 -07:00
Alex Bilbie
1e57533127
Added getClientId method
2013-05-08 18:06:18 -07:00
Alex Bilbie
92e217d0ac
Show default parameters
2013-05-08 18:06:09 -07:00
Alex Bilbie
707354348a
Changed scope to be a delimiter to a space as required by the spec
2013-05-08 17:42:15 -07:00
Alex Bilbie
46f0e6c84d
Updated docblocks
2013-05-08 17:04:01 -07:00
Alex Bilbie
1dd768545a
Updated more docblocks
2013-05-08 14:10:58 -07:00
Alex Bilbie
787c8c566f
Updated docblocks
2013-05-08 14:10:48 -07:00
Alex Bilbie
fd10861065
Added missing docblock
2013-05-08 14:10:15 -07:00
Alex Bilbie
0812ca2927
Added missing clientId variable, fixed docblock
2013-05-08 13:59:17 -07:00
Alex Bilbie
a8a375ed1f
Anal code style fix
2013-05-08 13:40:15 -07:00
Alex Bilbie
e2350a65b1
Removed unused functions
2013-05-08 13:24:29 -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
1df524ae6e
Added missing docblocks
2013-05-08 11:31:38 -07:00
Alex Bilbie
9d1693cf78
Fixed incorrect @link
2013-05-08 11:30:53 -07:00
Alex Bilbie
5524e9b9c8
Moved files into server namespace/folder and updated docblock copyright statements
2013-05-08 11:29:24 -07:00
Alex Bilbie
850473ce40
Renamed namespace to League\OAuth2\
2013-05-08 11:06:09 -07:00
Alex Bilbie
56b8b7c64e
Updated associateRefreshToken to use expire time
2013-05-08 10:38:16 -07:00
Alex Bilbie
d6932cbb5e
Renamed get/setExpiresIn to get/setAccessTokenTTL
2013-05-08 10:35:13 -07:00
Alex Bilbie
c77484e97b
Added refresh token TTL
2013-05-08 10:34:25 -07:00
Alex Bilbie
9f90cd2635
Added method to set the auth token TTL
2013-05-07 15:20:32 -07:00
Alex Bilbie
8fd9e3f312
Renamed setExpiresIn method to accessTokenTTL
2013-05-07 15:16:30 -07:00
Alex Bilbie
fdebbac2df
Allow grant access token expiresIn override
2013-05-06 15:04:00 -07:00
Alex Bilbie
a561a9d98a
Throw an exception if a grant can't be loaded when called in getGrantType
2013-05-06 13:57:46 -07:00
Alex Bilbie
38f6be2aa0
Removed unnecessary methods
2013-05-05 18:22:03 +01:00
Alex Bilbie
d0abd8c295
Fixed getting of session scopes
2013-05-05 18:18:55 +01:00
Alex Bilbie
9be23cf222
Added session scopes
2013-05-05 18:16:28 +01:00
Alex Bilbie
90508a191d
Get scopes by access token instead of session ID
2013-05-05 18:14:27 +01:00
Alex Bilbie
10d7d3cb3d
Updated response params
2013-05-05 18:11:01 +01:00
Alex Bilbie
89850420f6
Updated query to return session details
2013-05-05 18:09:47 +01:00
Alex Bilbie
9b73eab07c
SQL query fix
2013-05-05 18:06:00 +01:00
Alex Bilbie
6897e233d4
Changed variable syntax style to be PSR2
2013-05-05 18:05:46 +01:00
Alex Bilbie
acfadc8993
Actually fixed the bug in validateAccessToken this time
2013-05-05 18:01:00 +01:00
Alex Bilbie
cc81e20206
Bug fix in validateAccessToken
2013-05-05 18:00:08 +01:00
Alex Bilbie
92303c7b26
Implemented validateAccessToken in PDO
2013-05-05 17:58:40 +01:00
Alex Bilbie
2866185349
Updated implicit grant
2013-04-30 15:51:55 +01:00
Alex Bilbie
b9570ac6b0
Fixed getScopes
2013-04-30 15:48:11 +01:00
Alex Bilbie
2a3ae641ab
Added getAccessToken, fixed validateRefreshToken docblock
2013-04-30 15:38:48 +01:00
Alex Bilbie
d149490c78
Updated getScopes
2013-04-30 15:32:07 +01:00
Alex Bilbie
c0d8a2c4fb
Lots of updated functions
2013-04-30 15:08:20 +01:00
Alex Bilbie
5b03859467
Removed unnecessary code
2013-04-30 15:08:03 +01:00
Alex Bilbie
a661634194
Updated refresh token grant
2013-04-30 15:07:44 +01:00
Alex Bilbie
c73d45fc07
PSR-2 fix
2013-04-30 14:33:30 +01:00
Alex Bilbie
85a53d7470
Fixed Password grant to match past updates
2013-04-30 14:28:59 +01:00
Alex Bilbie
18eea191ed
Fixed docblock
2013-04-30 14:28:40 +01:00
Alex Bilbie
14cff9ea44
Added missing db init
2013-04-29 11:59:45 +01:00
Alex Bilbie
1696903b8b
Removed extra bracket
2013-04-29 11:53:20 +01:00
Alex Bilbie
13c67c9a40
Updated completeFlow
2013-04-29 11:31:07 +01:00
Alex Bilbie
2dcb81d93c
Updated newAuthoriseRequest
2013-04-29 11:25:23 +01:00
Alex Bilbie
b39a9a5edc
Added missing DB instance::get() calls
2013-04-29 11:13:31 +01:00
Alex Bilbie
325242e3aa
Added missing third parameter
2013-04-29 11:12:35 +01:00
Alex Bilbie
757d2a4fd9
Removed scalar type hinting because it isn't supported
2013-04-29 11:11:16 +01:00
Alex Bilbie
725ab74e5c
Updated PDO session
2013-04-29 11:02:32 +01:00
Alex Bilbie
b7ca5d330b
Updated associateRefreshToken
2013-04-29 11:02:03 +01:00
Alex Bilbie
4034bea6d1
Updated client credentials grant
2013-04-29 10:36:35 +01:00
Alex Bilbie
6751c4d2fe
Fixed mistake from previous commit
2013-04-29 10:35:47 +01:00
Alex Bilbie
53a55d4946
Completely scrapped the old SessionInterface and simplified it
2013-04-29 10:34:11 +01:00
Alex Bilbie
79338d0d75
Delete an associated auth code
2013-04-29 00:02:00 +01:00
Alex Bilbie
17bc6a1512
Comment update
2013-04-29 00:01:51 +01:00
Alex Bilbie
6543ebcd4d
Updated updateSession code
2013-04-29 00:01:34 +01:00
Alex Bilbie
351bec6019
Don't associate a scope with a session, we associate it with an access token later
2013-04-29 00:01:07 +01:00
Alex Bilbie
a4715bfc3b
Updated create a new session
2013-04-29 00:00:04 +01:00
Alex Bilbie
4ef8030a93
First commit of PDO storage class
2013-04-28 23:58:01 +01:00
Alex Bilbie
7bfbe81f61
Started PDO storage classes
2013-04-28 23:57:50 +01:00
Alex Bilbie
81d6bcf00a
Changed params around and removed line breaks
2013-04-28 23:57:29 +01:00
Alex Bilbie
a265b027cc
Removed stage parameter
2013-04-23 13:52:21 +01:00
Alex Bilbie
4727a83d84
Removed stage parameter
2013-04-23 13:29:33 +01:00
Alex Bilbie
645d412c02
Removed die(var_dump())
2013-03-31 13:57:35 +01:00
Alex Bilbie
5f1609577e
Added stateParamRequired method
2013-03-31 13:57:24 +01:00
Alex Bilbie
351580d9d8
Added getResponseTypes() method
2013-03-31 13:37:12 +01:00
Alex Bilbie
9c9db978c6
Move authorisation code grant stuff into own grant
2013-03-31 13:37:02 +01:00
Alex Bilbie
a18b4184f5
getScopes() now have the grant type and client ID passed
2013-03-28 10:44:45 +00:00
Alex Bilbie
a7b4f7d66b
Added grant to getClient calls. Fixes #21
2013-03-27 14:47:07 +00:00
Alex Bilbie
3481ec8aa2
Variable name fixes + little changes to support unit tests
2013-03-27 14:26:46 +00:00
ziege
e563230f10
Method to get all headers for the error response
...
Method added to get all required headers for the error response, according to the RFC - the correct HTTP status code and the "WWW-Authenticate" header in special cases.
2013-03-27 13:33:09 +00:00
ziege
4cb4d5ba21
Refresh token removed in Client Credentials Grant
...
As defined in RFC: http://tools.ietf.org/html/rfc6749#section-4.4.3
2013-03-27 13:25:58 +00:00
ziege
74d9946db3
Storage corrected
...
Wrong client storage replaced with session storage
2013-03-22 17:24:36 +01:00
Alex Bilbie
85312f6995
Updated ClientCredentials to properly include scopes
2013-03-22 12:36:18 +00:00
Alex Bilbie
f463eb9db1
Style fixes
2013-03-22 11:44:53 +00:00
Alex Bilbie
f4cdfa91c1
Updated Password grant
2013-03-22 11:41:04 +00:00
Alex Bilbie
105a5b2a31
Fixed client_id and client_secret retrieval from request in conformity with the RFC
2013-03-22 10:40:47 +00:00
Alex Bilbie
493834fcbf
Removed base64 decoding of token when present in authorization header. Fixes #23
2013-03-22 10:35:42 +00:00
Alex Bilbie
fce24aa74d
Added getDefaultScope method
2013-03-21 16:22:44 +00:00
Alex Bilbie
0c30b9ca66
Added scopeParamRequired method
2013-03-21 16:22:29 +00:00
Alex Bilbie
03aa81450e
Renamed method to setDefaultScope
2013-03-21 16:22:16 +00:00
Michael Gooden
5bd62fe942
Add optional default scope parameter.
...
Signed-off-by: Michael Gooden <me@michaelgooden.net>
2013-03-21 14:47:29 +00:00
lapause
26781d2c38
Corrected wrong return documentation for SessionInterface::validateAuthCode() method
2013-03-21 14:42:51 +00:00
lapause
18e1bb33de
Added missing details (return values on failure) to methods of SessionInterface
2013-03-21 14:42:47 +00:00
lapause
3a6468897f
Removed obsolete namespace inclusion
2013-03-21 14:42:43 +00:00
lapause
97484eea6a
Typo correction in inline doc
2013-03-21 14:42:38 +00:00
Alex Bilbie
3341728eb2
Added implicit grant
2013-03-06 18:01:44 +00:00
Alex Bilbie
6b172d4c27
Made getGrantType public for use with implicit grant
2013-03-06 18:01:34 +00:00
Alex Bilbie
4962762c28
Change from static calls
2013-03-06 18:01:12 +00:00
Alex Bilbie
56b559894c
Spelling fix
2013-03-06 17:57:48 +00:00
Alex Bilbie
a9a68a5cc8
Added scope parameter association for clientcredentials and password scope
...
TODO: Unit tests
2013-03-06 17:18:48 +00:00
Alex Bilbie
542ca52d49
Set a default parameter for getParam
2013-03-06 17:18:13 +00:00
Alex Bilbie
7d0c075b36
It ain't static anymore Jim
2013-03-06 17:18:04 +00:00
Alex Bilbie
07c07ccb5e
Removed static functions, inject authserver instance into grants
2013-03-06 16:59:18 +00:00
Michael Gooden
f70c039275
Fix state parameter check typo
2013-03-04 17:31:59 +02: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
Michael Gooden
3be3794311
Normalise long function definition.
...
Signed-off-by: Michael Gooden <michael@bluepointweb.com>
2013-03-04 12:20:11 +00:00
Michael Gooden
710c65aa42
Fix typo in SessionInterface::validateAuthCode.
2013-03-04 12:20:11 +00:00
Alex Bilbie
ffac434bcc
Added missing state parameter
2013-02-22 15:38:47 +00:00
Alex Bilbie
822669fc0c
Update getScopes
2013-02-21 17:51:01 +00:00
Alex Bilbie
22dcef33da
Fixed SQL to get a session\'s scopes
2013-02-21 17:42:30 +00:00
Alex Bilbie
43d064733f
Changed all mentions of authentication to authorization server
2013-02-20 12:40:42 +00:00
Alex Bilbie
e3f13bf545
Use self::getParam
2013-02-19 00:40:30 +00:00
Alex Bilbie
4b63c20a58
Updated docblocks with correct SQL
2013-02-19 00:26:28 +00:00
Alex Bilbie
92d9435bba
Added method to get the exception type
2013-02-15 16:29:00 +00:00
Alex Bilbie
f818bdf40e
Updated docblocks
2013-02-13 19:59:08 +00:00
Alex Bilbie
246732153c
Updated grantTypes to use AuthServer::getParam()
2013-02-13 19:39:43 +00:00
Alex Bilbie
4506037bda
Docblock updates
2013-02-13 19:36:56 +00:00
Alex Bilbie
d99002ef2f
Renamed variable as $authParams is no longer used
2013-02-13 19:36:10 +00:00
Alex Bilbie
1e2d2b3d25
Added AuthServer::getParam() function to reduce repetitive code
2013-02-13 18:25:10 +00:00
Alex Bilbie
0f4546db47
Changed 'oauth_token' to 'access_token'
2013-02-13 17:10:44 +00:00
Alex Bilbie
1cfe10105a
Updated docblocks for the two main classes
2013-02-12 20:33:23 +00:00
Alex Bilbie
e771099568
Removed unnecessary functions
2013-02-12 17:22:15 +00:00
Alex Bilbie
61d1685e84
Minor fixes to password grant
2013-02-12 16:45:33 +00:00
Alex Bilbie
d2267dbd24
Added Password grant
2013-02-12 16:22:14 +00:00
Alex Bilbie
87186d73b7
Removed old client code which can be now be found at lncd/oauth2-client
2013-02-12 16:01:02 +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
89f3c35466
Authorization header fixes
2013-02-07 16:16:09 +00:00
Alex Bilbie
55d68bd105
Import namespace for util\request
2013-02-07 14:54:56 +00:00
Alex Bilbie
562c257596
Various bug fixes
2013-02-05 16:20:45 +00:00
Alex Bilbie
322eb15bb5
Revert "Removed unnecessary code"
...
This reverts commit c89a2346a8
.
2013-02-05 15:57:24 +00:00
Alex Bilbie
6b4e51b3a3
Removed unnecessary interfaces
2013-02-05 15:56:03 +00:00
Alex Bilbie
e903cbee68
Update request class namespace
2013-02-05 15:55:38 +00:00
Alex Bilbie
920fd9344f
Moved request class to util folder
2013-02-05 15:55:04 +00:00
Alex Bilbie
7a646d3a84
Renamed client get function
2013-02-05 14:47:54 +00:00
Alex Bilbie
66bea97e8c
Bug fixes based on previous code changes
2013-02-05 10:07:36 +00:00
Alex Bilbie
4a50af333d
Added code coverage blocks
2013-02-04 19:46:06 +00:00
Alex Bilbie
c89a2346a8
Removed unnecessary code
2013-02-04 19:45:58 +00:00
Alex Bilbie
22f793a16f
Fixed getClient call
2013-02-04 19:45:47 +00:00
Alex Bilbie
6edd486b4c
Added code coverage ignore blocks to getRequest method
2013-02-04 19:45:34 +00:00
Alex Bilbie
d5ae471d94
Throw root exception
2013-02-04 18:58:26 +00:00
Alex Bilbie
9a265f7956
Fixed bad ternary statement. Added missing semicolon
2013-02-04 18:58:17 +00:00
Alex Bilbie
04b8394009
Updated method calls to reflect naming changes
2013-02-04 18:44:19 +00:00
Alex Bilbie
6ae4db460e
$request parameter is static
2013-02-04 18:31:13 +00:00
Alex Bilbie
768dfb369c
Renamed getCurrentGrantType to getGrantType
2013-02-04 18:30:56 +00:00
Alex Bilbie
0d173d4c35
Renamed methods to prevent ORM conflict
2013-02-04 17:10:30 +00:00
Alex Bilbie
4b8bc76622
Removed properties from Interface
2013-02-04 15:32:33 +00:00
Alex Bilbie
1a1bfd9348
Fix $expiresIn call as static
2013-02-04 15:32:21 +00:00
Alex Bilbie
91bf8cc241
Removed old Authentication folder
2013-02-04 14:42:14 +00:00
Alex Bilbie
3c7fe00130
Renamed some session methods to avoid conflicts with ORM methods
2013-02-04 14:41:40 +00:00
Alex Bilbie
5f8ca89772
Added docblocks to the grant interface
2013-02-04 13:59:34 +00:00
Alex Bilbie
f855b572e8
First commit of new refresh token grant
2013-02-01 16:50:59 +00:00
Alex Bilbie
5e365bb974
Function name fix
2013-02-01 16:02:38 +00:00
Alex Bilbie
85c42db355
Variable name fix
2013-02-01 16:02:04 +00:00
Alex Bilbie
a81c486e0e
Spelling fix
2013-02-01 16:00:00 +00:00
Alex Bilbie
e8d43f2087
Anal restyle
2013-02-01 15:59:50 +00:00
Alex Bilbie
5abb84eda0
Validate all client credentials
2013-02-01 15:59:43 +00:00
Alex Bilbie
9fd7ccc137
Added ClientCredentials grant
2013-02-01 15:51:51 +00:00
Alex Bilbie
a3a617171a
$grantTypes static access
2013-02-01 15:28:40 +00:00
Alex Bilbie
47731ce901
$expiresIn now static
2013-02-01 15:28:25 +00:00
Alex Bilbie
3aa8465640
Made $grantTypes static to fix ref bug
2013-02-01 15:23:04 +00:00
Alex Bilbie
2a8688b54e
Update getRequest calls to static requests
2013-02-01 15:09:15 +00:00
Alex Bilbie
aec9aa908c
Made getRequest static
2013-02-01 15:07:47 +00:00
Alex Bilbie
8de2cdb1d9
< PHP5.4 array syntax
2013-02-01 15:02:36 +00:00
Alex Bilbie
2c1dedfe8a
Updated grantTypeInterface
2013-02-01 14:56:36 +00:00
Alex Bilbie
d732778f65
Finished AuthCode grant
2013-02-01 14:41:52 +00:00
Alex Bilbie
6eb5db0239
Lots of bug fixes. Some methods and variables made static so they can be accessed by grant classes.
2013-02-01 14:41:10 +00:00
Alex Bilbie
7a851084c6
Initial commit of AuthCode grant type
2013-02-01 10:50:39 +00:00
Alex Bilbie
9b6a92c506
Updated namespace use for Util\SecureKey
2013-01-29 16:53:39 +00:00
Alex Bilbie
781bf985c3
Renamed checkClientAuthoriseParams method to checkAuthoriseParams
2013-01-29 16:25:14 +00:00
Alex Bilbie
87a142cc30
Updated getCurrentGrantType method
2013-01-29 16:24:48 +00:00
Alex Bilbie
4fa37bb356
Updated issueAccessToken method
2013-01-29 16:24:28 +00:00
Alex Bilbie
514aabb838
Updated newAuthoriseRequest method
2013-01-29 16:23:41 +00:00
Alex Bilbie
3cb53448c5
Anal style fix
2013-01-29 16:21:53 +00:00
Alex Bilbie
8ae0dbcf46
Default to 40 characters (as that is what the DB table columns are set to)
2013-01-29 16:21:39 +00:00
Alex Bilbie
ffcad85d95
Renamed functions, changed some doc terms
2013-01-29 16:21:21 +00:00
Alex Bilbie
14b680f6be
Moved GrantTypeInterface
2013-01-29 16:18:45 +00:00
Alex Bilbie
74f48d28a4
Added ClientException
2013-01-29 16:18:23 +00:00
Alex Bilbie
31c3b495bf
Re-added checkClientAuthoriseParams() function
2013-01-29 14:56:17 +00:00
Alex Bilbie
a8b6389092
Updated SessionInterface
2013-01-29 14:55:50 +00:00
Alex Bilbie
5e91b95cb3
Updated ScopeInterface with get method
2013-01-29 14:25:49 +00:00
Alex Bilbie
1ed4c27420
Update ClientInterface with get() method
2013-01-29 14:23:28 +00:00
Alex Bilbie
57f825b0a8
Added exception codes and messages
2013-01-29 14:19:23 +00:00
Alex Bilbie
846a008c76
Explanation of the scope delimiter parameter
2013-01-29 14:18:13 +00:00
Alex Bilbie
a189156f26
Response types are now generated from grants that are injected in
2013-01-29 14:17:56 +00:00
Alex Bilbie
d63c0ea262
Added model variable storage
2013-01-29 14:16:47 +00:00
Alex Bilbie
f74a35074a
Added getResponseType parameter
2013-01-29 14:15:05 +00:00
Daniel Horrigan
945d60bd5d
Renaming Server and Resource to AuthServer and ResourceServer to be less confusing.
2013-01-22 11:33:09 -05:00
Daniel Horrigan
892ae3a0d3
Started adding some Server methods, adding some Util classes and adding a way to get the token from the Resource
2013-01-22 11:25:51 -05:00
Daniel Horrigan
2727ba0078
Adding a few Getters to the Resource, moving Exceptions and adding some new ones.
2013-01-17 15:19:01 -05:00
Daniel Horrigan
c12472857b
Changed Case of Oauth2 namespace to OAuth2 namespace
2013-01-08 16:35:29 -05:00
Daniel Horrigan
385111a1f2
Merge branch 'cleanup' of github.com:dandoescode/OAuth2 into feature/reorg
...
Conflicts:
src/OAuth2/Authentication/Server.php
src/Oauth2/Resource/Server.php
2013-01-08 16:26:17 -05:00
Nick Jackson
608bcb767b
Bearer token now correctly base64 decoding
2013-01-08 15:52:17 +00:00
Daniel Horrigan
89e89a73dc
Changing 'user_credentials' to password
2013-01-07 10:31:28 -05:00
Daniel Horrigan
2fecadd2a6
Fixing Resource bugs and moving the Request dep to a setter.
2013-01-04 17:21:24 -05:00
Daniel Horrigan
373ddf9f34
Changing Case in namespaces
2013-01-04 14:55:13 -05:00
Daniel Horrigan
a3fd22b3dd
Changing Case
2013-01-04 14:44:58 -05: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
Daniel Horrigan
31b36f23e7
Starting the reorganization
2012-12-28 15:12:16 -05:00
Alex Bilbie
0876fd9ad3
Spacing fixes
2012-12-23 22:12:51 +00:00
Alex Bilbie
2545ea7dc1
Added refresh token params and examples
2012-12-23 22:12:44 +00:00
Alex Bilbie
0f30b2a803
Removed lots of unnecessary if/else blocks.
...
Removed null value of expires/expiresIn parameter
2012-12-23 21:21:37 +00:00
Daniel Horrigan
0f6f5e2939
Added the user_credentials and refresh_token grants. Fixed expires_in so it is inline with the spec, but added expires for the old usage of expires_in. Made redirect_uri in oauth_sessions ALLOW NULL since user_credential grants don't have a redirect
2012-12-19 16:12:48 -05:00
Alex Bilbie
aa978d3581
Fix variable name
2012-12-12 11:43:01 +00:00
Alex Bilbie
1be25955d6
Merge branch 'release/0.3.4'
2012-12-11 15:33:05 +00:00
Alex Bilbie
302bf1f70d
Clean trailing whitespace
2012-12-11 15:31:42 +00:00
Alex Bilbie
6553fb3f22
Return client details
2012-12-11 12:09:56 +00:00
Alex Bilbie
fdfe80289a
Merge branch 'release/0.3.3'. Release version 0.3.3
...
Conflicts:
composer.json
2012-12-10 21:31:58 +00:00
Alex Bilbie
912cd3fa25
Changed session stage to 'requested' as per enum
2012-12-10 21:19:11 +00:00
Alex Bilbie
a5b83c00bd
Version bump
2012-11-20 15:29:43 +00:00
Alex Bilbie
958eab33a7
Lots of small documentation updates and clarifications
2012-11-20 15:27:33 +00:00
Alex Bilbie
fead044830
Spacing fixes and fixed sessionScopes() example query
2012-11-20 15:27:15 +00:00
Alex Bilbie
99f54d1a02
Missing provider class
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-14 17:33:22 +01:00
Alex Bilbie
cca5ae6229
Merge branch 'feature/clients' into develop
2012-10-14 17:18:52 +01:00
Alex Bilbie
b1082ecb41
Lots of updates so it all works now
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-14 17:18:27 +01:00
Alex Bilbie
af83b1e80e
Added urlUserInfo() method
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-12 14:42:36 +01:00
Alex Bilbie
92ace5c6e5
Fixed PHP error with missing bracket
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-12 13:09:56 +01:00
Alex Bilbie
5ed4a8a2c4
Don't base64 decode the bearer token
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-10 09:32:50 +01:00
Alex Bilbie
ddfb355280
Code beautification
2012-10-05 15:24:59 +01:00
Alex Bilbie
ac3743027b
Code beautification
2012-10-05 15:22:29 +01:00
Alex Bilbie
a76fbcd23d
Epic rewriting to use Guzzle
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:05:27 +01:00
Alex Bilbie
bef7a212e3
Fixes and cleanup
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:03:15 +01:00
Alex Bilbie
ec191cffe1
Cleanup
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:02:56 +01:00
Alex Bilbie
5c13c3ee54
Namespace fixes
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:01:09 +01:00
Alex Bilbie
52bd18a2b4
Fixed namespaces in providers
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-10-05 15:00:51 +01:00
Alex Bilbie
6d1702a15d
Merge branch 'develop' into feature/clients
2012-09-19 23:29:40 +01:00
Alex Bilbie
7d50b8e812
Moved SQL files
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-09-19 19:59:00 +01:00
Alex Bilbie
3c2720ece4
Renamed exceptions
...
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-09-19 19:52:52 +01:00
Alex Bilbie
ed2cabc5b6
Merge branch 'master' of github.com:lncd/OAuth2
...
Conflicts:
composer.json
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
2012-09-19 19:32:31 +01:00
Alex Bilbie
3f3b987fb1
Check responses from the database are valid
2012-09-19 19:27:04 +01:00
Alex Bilbie
c993a0cdc0
Use namespace, use PSR, get rid of Pyro settings
2012-09-04 14:50:20 +01:00
Alex Bilbie
9dfa485bcb
PSR fixes
2012-09-04 14:49:56 +01:00
Alex Bilbie
c760667448
PSR style class braces
2012-09-04 12:43:18 +01:00
Alex Bilbie
0298f6fb7d
Include IDP.php
2012-09-04 12:42:33 +01:00
Alex Bilbie
17b7bf7d1d
Test if provider config exists
2012-09-04 12:40:32 +01:00
Alex Bilbie
ed6301a497
Renamed provider.php to IDP.php
2012-09-04 12:40:02 +01:00
Alex Bilbie
c423ef810f
Require instead of include
2012-09-04 12:33:17 +01:00
Alex Bilbie
485a3772b6
Changed function to __construct
2012-09-04 12:32:59 +01:00
Alex Bilbie
6f03eec814
Class rename
2012-09-04 12:32:44 +01:00
Alex Bilbie
0a5455642f
PSR style if/else block
2012-09-04 12:31:04 +01:00
Alex Bilbie
8fdcb02740
Exception class rename
2012-09-04 12:30:49 +01:00
Alex Bilbie
153bb962c5
PSR variable rename
2012-09-04 12:30:38 +01:00
Alex Bilbie
3ee5f22a55
Class rename
2012-09-04 12:30:15 +01:00
Alex Bilbie
c09663f2b8
Class rename
2012-09-04 12:30:06 +01:00
Alex Bilbie
6a41ae5254
PSR style if block
2012-09-04 12:29:52 +01:00
Alex Bilbie
dd5fc7dc24
PSR variable rename
2012-09-04 12:29:10 +01:00
Alex Bilbie
11415bea0b
PSR style if/else block
2012-09-04 12:28:28 +01:00
Alex Bilbie
eb5010a3f8
PSR variable rename
2012-09-04 12:28:06 +01:00
Alex Bilbie
da329b6b37
Merge branch 'refs/heads/develop' into feature/clients
...
Conflicts:
src/Oauth2/Authentication/Server.php
2012-09-04 12:09:13 +01:00
Alex Bilbie
a1e5fdddda
Bug fix
2012-08-28 12:30:51 +01:00
Alex Bilbie
4d4db99c06
Underscored private variables and methods and updated references
2012-08-27 16:02:54 +01:00
Alex Bilbie
7a4aece507
Stylistic fix
2012-08-27 15:25:28 +01:00
Alex Bilbie
b7d73accdc
Removed old die statement
2012-08-27 15:25:14 +01:00
Alex Bilbie
3642b8432e
PHPCS fixes
2012-08-27 14:25:24 +01:00
Alex Bilbie
e191566260
Fixed errors with handling database calls
2012-08-27 14:25:18 +01:00
Alex Bilbie
95931abd6b
Spelling fix
2012-08-27 14:24:43 +01:00
Alex Bilbie
465c1c6ab2
Wrapped getallheaders() method in function_exists (function isn't available on command line)
2012-08-24 12:25:31 +01:00
Alex Bilbie
326e96cc17
Bug fix in dbcall
2012-08-20 15:49:57 +01:00
Alex Bilbie
6fdb6177bc
Lots of fixes
2012-08-20 15:09:33 +01:00
Alex Bilbie
ed3238b862
Fixed constance letter casing
2012-08-20 14:19:33 +01:00
Alex Bilbie
519d20f0a5
Changed indent to spaces
2012-08-14 16:34:43 +01:00
Alex Bilbie
e859f435a1
Added docblocks for the database interface
2012-08-14 16:28:40 +01:00
Alex Bilbie
77ce18df56
Added the resource server database interface
2012-08-14 15:46:58 +01:00
Alex Bilbie
8720de48de
Initial update with some PSR-* changes
2012-08-14 15:44:25 +01:00
Alex Bilbie
a9b6cd3e12
Mini fixes
2012-08-14 15:43:11 +01:00
Alex Bilbie
44666402dd
Renamed variable
2012-08-14 14:20:14 +01:00
Alex Bilbie
4c82648a9a
First commit of Phil's code with some namespace and class name tweaks
2012-08-13 16:36:45 +01:00
Alex Bilbie
95068c5176
Lots of fixes following errors found from unit tests
2012-08-06 14:42:58 +01:00
Alex Bilbie
a5f019ad19
Call database methods via the dbcall() method
2012-08-06 10:59:20 +01:00
Alex Bilbie
c17cd7b1cc
Fixed variable reference bug
2012-08-04 09:12:12 +01:00
Alex Bilbie
bfab30061e
Spacing fix
2012-08-04 09:11:39 +01:00
Alex Bilbie
5c463a69b8
Little fixes
2012-08-01 14:50:31 +01:00
Alex Bilbie
f049997f59
Various spacing fixes
2012-07-31 16:16:38 +01:00
Alex Bilbie
3f2f25a6a7
PSR2 wants a blank line at the end of the file
2012-07-31 16:00:55 +01:00