{"action":"created","comment":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/comments/27834943","id":27834943,"diff_hunk":"@@ -6,11 +6,15 @@\n \t\"require\": {\n \t\t\"php\": \">=5.4.0\",\n \t\t\"symfony/http-foundation\": \"~2.4\",\n-\t\t\"league/event\": \"1.0.*\"\n+\t\t\"league/event\": \"~2.1\",\n+\t\t\"league/container\": \"~1.0\",\n+\t\t\"firebase/php-jwt\": \"~2.0\"","path":"composer.json","position":7,"original_position":7,"commit_id":"18b104d0ac04d4311c6bd1c7e812aa9d72e03496","original_commit_id":"18b104d0ac04d4311c6bd1c7e812aa9d72e03496","user":{"login":"lcobucci","id":201963,"avatar_url":"https://avatars.githubusercontent.com/u/201963?v=3","gravatar_id":"","url":"https://api.github.com/users/lcobucci","html_url":"https://github.com/lcobucci","followers_url":"https://api.github.com/users/lcobucci/followers","following_url":"https://api.github.com/users/lcobucci/following{/other_user}","gists_url":"https://api.github.com/users/lcobucci/gists{/gist_id}","starred_url":"https://api.github.com/users/lcobucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcobucci/subscriptions","organizations_url":"https://api.github.com/users/lcobucci/orgs","repos_url":"https://api.github.com/users/lcobucci/repos","events_url":"https://api.github.com/users/lcobucci/events{/privacy}","received_events_url":"https://api.github.com/users/lcobucci/received_events","type":"User","site_admin":false},"body":"You can look http://github.com/lcobucci/jwt too. ","created_at":"2015-04-06T22:00:11Z","updated_at":"2015-04-06T22:00:11Z","html_url":"https://github.com/thephpleague/oauth2-server/pull/326#discussion_r27834943","pull_request_url":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/326","_links":{"self":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/comments/27834943"},"html":{"href":"https://github.com/thephpleague/oauth2-server/pull/326#discussion_r27834943"},"pull_request":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/326"}}},"pull_request":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/326","id":32653843,"html_url":"https://github.com/thephpleague/oauth2-server/pull/326","diff_url":"https://github.com/thephpleague/oauth2-server/pull/326.diff","patch_url":"https://github.com/thephpleague/oauth2-server/pull/326.patch","issue_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/326","number":326,"state":"open","locked":false,"title":"Version 5","user":{"login":"alexbilbie","id":77991,"avatar_url":"https://avatars.githubusercontent.com/u/77991?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbilbie","html_url":"https://github.com/alexbilbie","followers_url":"https://api.github.com/users/alexbilbie/followers","following_url":"https://api.github.com/users/alexbilbie/following{/other_user}","gists_url":"https://api.github.com/users/alexbilbie/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbilbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbilbie/subscriptions","organizations_url":"https://api.github.com/users/alexbilbie/orgs","repos_url":"https://api.github.com/users/alexbilbie/repos","events_url":"https://api.github.com/users/alexbilbie/events{/privacy}","received_events_url":"https://api.github.com/users/alexbilbie/received_events","type":"User","site_admin":false},"body":"### Goal\r\n\r\nThe goal of version 5 is to make this library significantly easier to implement. The big pain points are the \"storage\" repositories are too verbose, and using this library's entities with other implementations (e.g. Doctrine entites/Eloquent models). Also remove the concept of a session as it isn't an OAuth concept.\r\n\r\nAn example implementation of each of the grant types will be added here as I finish implementing them - https://github.com/thephpleague/oauth2-server/tree/v5/examples/public. These examples will form the basis of functional tests too.\r\n\r\n### TODO\r\n\r\n- [x] Replace all occurrences of the term \"Storage\" with \"Repository\" - #307\r\n- [x] Simplify repositories\r\n- [x] Introduce EntityTrait and entity interfaces - #318\r\n- [ ] Make exceptions more helpful - #321\r\n- [ ] Integration with StackPHP - #200\r\n- [x] Add support for JWT - #209\r\n- [ ] Remove `session` concept as it's confusing - #306\r\n- [ ] Update documentation - #193\r\n- [ ] Find a solution to running Codeception tests on HHVM in TravisCI\r\n- [ ] Relational database map (maybe as part of documentation?)\r\n\r\nGrant refactors:\r\n- [x] Client credentials\r\n- [x] Password\r\n- [ ] Auth code\r\n- [ ] Refresh token\r\n- [ ] MAC","created_at":"2015-04-05T20:26:16Z","updated_at":"2015-04-06T22:00:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"alexbilbie","id":77991,"avatar_url":"https://avatars.githubusercontent.com/u/77991?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbilbie","html_url":"https://github.com/alexbilbie","followers_url":"https://api.github.com/users/alexbilbie/followers","following_url":"https://api.github.com/users/alexbilbie/following{/other_user}","gists_url":"https://api.github.com/users/alexbilbie/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbilbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbilbie/subscriptions","organizations_url":"https://api.github.com/users/alexbilbie/orgs","repos_url":"https://api.github.com/users/alexbilbie/repos","events_url":"https://api.github.com/users/alexbilbie/events{/privacy}","received_events_url":"https://api.github.com/users/alexbilbie/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/milestones/5","html_url":"https://github.com/thephpleague/oauth2-server/milestones/v5.0.0","labels_url":"https://api.github.com/repos/thephpleague/oauth2-server/milestones/5/labels","id":956818,"number":5,"title":"v5.0.0","description":null,"creator":{"login":"alexbilbie","id":77991,"avatar_url":"https://avatars.githubusercontent.com/u/77991?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbilbie","html_url":"https://github.com/alexbilbie","followers_url":"https://api.github.com/users/alexbilbie/followers","following_url":"https://api.github.com/users/alexbilbie/following{/other_user}","gists_url":"https://api.github.com/users/alexbilbie/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbilbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbilbie/subscriptions","organizations_url":"https://api.github.com/users/alexbilbie/orgs","repos_url":"https://api.github.com/users/alexbilbie/repos","events_url":"https://api.github.com/users/alexbilbie/events{/privacy}","received_events_url":"https://api.github.com/users/alexbilbie/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-01-29T14:36:27Z","updated_at":"2015-04-05T21:16:19Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/326/commits","review_comments_url":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/326/comments","review_comment_url":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/326/comments","statuses_url":"https://api.github.com/repos/thephpleague/oauth2-server/statuses/18b104d0ac04d4311c6bd1c7e812aa9d72e03496","head":{"label":"thephpleague:v5","ref":"v5","sha":"18b104d0ac04d4311c6bd1c7e812aa9d72e03496","user":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"repo":{"id":4551765,"name":"oauth2-server","full_name":"thephpleague/oauth2-server","owner":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thephpleague/oauth2-server","description":"A spec compliant, secure by default PHP OAuth 2.0 Server","fork":false,"url":"https://api.github.com/repos/thephpleague/oauth2-server","forks_url":"https://api.github.com/repos/thephpleague/oauth2-server/forks","keys_url":"https://api.github.com/repos/thephpleague/oauth2-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thephpleague/oauth2-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thephpleague/oauth2-server/teams","hooks_url":"https://api.github.com/repos/thephpleague/oauth2-server/hooks","issue_events_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/events{/number}","events_url":"https://api.github.com/repos/thephpleague/oauth2-server/events","assignees_url":"https://api.github.com/repos/thephpleague/oauth2-server/assignees{/user}","branches_url":"https://api.github.com/repos/thephpleague/oauth2-server/branches{/branch}","tags_url":"https://api.github.com/repos/thephpleague/oauth2-server/tags","blobs_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thephpleague/oauth2-server/statuses/{sha}","languages_url":"https://api.github.com/repos/thephpleague/oauth2-server/languages","stargazers_url":"https://api.github.com/repos/thephpleague/oauth2-server/stargazers","contributors_url":"https://api.github.com/repos/thephpleague/oauth2-server/contributors","subscribers_url":"https://api.github.com/repos/thephpleague/oauth2-server/subscribers","subscription_url":"https://api.github.com/repos/thephpleague/oauth2-server/subscription","commits_url":"https://api.github.com/repos/thephpleague/oauth2-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/thephpleague/oauth2-server/contents/{+path}","compare_url":"https://api.github.com/repos/thephpleague/oauth2-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thephpleague/oauth2-server/merges","archive_url":"https://api.github.com/repos/thephpleague/oauth2-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thephpleague/oauth2-server/downloads","issues_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues{/number}","pulls_url":"https://api.github.com/repos/thephpleague/oauth2-server/pulls{/number}","milestones_url":"https://api.github.com/repos/thephpleague/oauth2-server/milestones{/number}","notifications_url":"https://api.github.com/repos/thephpleague/oauth2-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thephpleague/oauth2-server/labels{/name}","releases_url":"https://api.github.com/repos/thephpleague/oauth2-server/releases{/id}","created_at":"2012-06-04T20:00:52Z","updated_at":"2015-04-06T15:16:56Z","pushed_at":"2015-04-06T07:35:06Z","git_url":"git://github.com/thephpleague/oauth2-server.git","ssh_url":"git@github.com:thephpleague/oauth2-server.git","clone_url":"https://github.com/thephpleague/oauth2-server.git","svn_url":"https://github.com/thephpleague/oauth2-server","homepage":"oauth2.thephpleague.com","size":11909,"stargazers_count":1475,"watchers_count":1475,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":320,"mirror_url":null,"open_issues_count":16,"forks":320,"open_issues":16,"watchers":1475,"default_branch":"master"}},"base":{"label":"thephpleague:master","ref":"master","sha":"810544ec0ad1d6836f5657883b0eb0e933c2d004","user":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"repo":{"id":4551765,"name":"oauth2-server","full_name":"thephpleague/oauth2-server","owner":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thephpleague/oauth2-server","description":"A spec compliant, secure by default PHP OAuth 2.0 Server","fork":false,"url":"https://api.github.com/repos/thephpleague/oauth2-server","forks_url":"https://api.github.com/repos/thephpleague/oauth2-server/forks","keys_url":"https://api.github.com/repos/thephpleague/oauth2-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thephpleague/oauth2-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thephpleague/oauth2-server/teams","hooks_url":"https://api.github.com/repos/thephpleague/oauth2-server/hooks","issue_events_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/events{/number}","events_url":"https://api.github.com/repos/thephpleague/oauth2-server/events","assignees_url":"https://api.github.com/repos/thephpleague/oauth2-server/assignees{/user}","branches_url":"https://api.github.com/repos/thephpleague/oauth2-server/branches{/branch}","tags_url":"https://api.github.com/repos/thephpleague/oauth2-server/tags","blobs_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thephpleague/oauth2-server/statuses/{sha}","languages_url":"https://api.github.com/repos/thephpleague/oauth2-server/languages","stargazers_url":"https://api.github.com/repos/thephpleague/oauth2-server/stargazers","contributors_url":"https://api.github.com/repos/thephpleague/oauth2-server/contributors","subscribers_url":"https://api.github.com/repos/thephpleague/oauth2-server/subscribers","subscription_url":"https://api.github.com/repos/thephpleague/oauth2-server/subscription","commits_url":"https://api.github.com/repos/thephpleague/oauth2-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/thephpleague/oauth2-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/thephpleague/oauth2-server/contents/{+path}","compare_url":"https://api.github.com/repos/thephpleague/oauth2-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thephpleague/oauth2-server/merges","archive_url":"https://api.github.com/repos/thephpleague/oauth2-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thephpleague/oauth2-server/downloads","issues_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues{/number}","pulls_url":"https://api.github.com/repos/thephpleague/oauth2-server/pulls{/number}","milestones_url":"https://api.github.com/repos/thephpleague/oauth2-server/milestones{/number}","notifications_url":"https://api.github.com/repos/thephpleague/oauth2-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thephpleague/oauth2-server/labels{/name}","releases_url":"https://api.github.com/repos/thephpleague/oauth2-server/releases{/id}","created_at":"2012-06-04T20:00:52Z","updated_at":"2015-04-06T15:16:56Z","pushed_at":"2015-04-06T07:35:06Z","git_url":"git://github.com/thephpleague/oauth2-server.git","ssh_url":"git@github.com:thephpleague/oauth2-server.git","clone_url":"https://github.com/thephpleague/oauth2-server.git","svn_url":"https://github.com/thephpleague/oauth2-server","homepage":"oauth2.thephpleague.com","size":11909,"stargazers_count":1475,"watchers_count":1475,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":320,"mirror_url":null,"open_issues_count":16,"forks":320,"open_issues":16,"watchers":1475,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/326"},"html":{"href":"https://github.com/thephpleague/oauth2-server/pull/326"},"issue":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/issues/326"},"comments":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/issues/326/comments"},"review_comments":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/326/comments"},"review_comment":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/pulls/326/commits"},"statuses":{"href":"https://api.github.com/repos/thephpleague/oauth2-server/statuses/18b104d0ac04d4311c6bd1c7e812aa9d72e03496"}}}}