{"action":"opened","number":656,"pull_request":{"url":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls/656","id":48306963,"html_url":"https://github.com/bshaffer/oauth2-server-php/pull/656","diff_url":"https://github.com/bshaffer/oauth2-server-php/pull/656.diff","patch_url":"https://github.com/bshaffer/oauth2-server-php/pull/656.patch","issue_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/656","number":656,"state":"open","locked":false,"title":"ResponseType sends user_info and not user_id to setAuthorizationCode","user":{"login":"casperbiering","id":461165,"avatar_url":"https://avatars.githubusercontent.com/u/461165?v=3","gravatar_id":"","url":"https://api.github.com/users/casperbiering","html_url":"https://github.com/casperbiering","followers_url":"https://api.github.com/users/casperbiering/followers","following_url":"https://api.github.com/users/casperbiering/following{/other_user}","gists_url":"https://api.github.com/users/casperbiering/gists{/gist_id}","starred_url":"https://api.github.com/users/casperbiering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casperbiering/subscriptions","organizations_url":"https://api.github.com/users/casperbiering/orgs","repos_url":"https://api.github.com/users/casperbiering/repos","events_url":"https://api.github.com/users/casperbiering/events{/privacy}","received_events_url":"https://api.github.com/users/casperbiering/received_events","type":"User","site_admin":false},"body":"ResponseType\\AuthorizationCode send the user_info (array with auth_time) directly to setAuthorizationCode instead of only sending $user_info['user_id'].\r\n\r\nFor the Storage\\Memory none of the old tests detected this flaw, since 'user_id' is never used from getAuthorizationCode, but for eg. Storage\\Pdo it always puts \"Array\" as user_id in the database.","created_at":"2015-10-21T09:27:43Z","updated_at":"2015-10-21T09:27:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls/656/commits","review_comments_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls/656/comments","review_comment_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/656/comments","statuses_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/statuses/d794cfa90385b536e3e1e5ac523916af900e2665","head":{"label":"Peercraft:fix_authcode_user_id","ref":"fix_authcode_user_id","sha":"d794cfa90385b536e3e1e5ac523916af900e2665","user":{"login":"Peercraft","id":913505,"avatar_url":"https://avatars.githubusercontent.com/u/913505?v=3","gravatar_id":"","url":"https://api.github.com/users/Peercraft","html_url":"https://github.com/Peercraft","followers_url":"https://api.github.com/users/Peercraft/followers","following_url":"https://api.github.com/users/Peercraft/following{/other_user}","gists_url":"https://api.github.com/users/Peercraft/gists{/gist_id}","starred_url":"https://api.github.com/users/Peercraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peercraft/subscriptions","organizations_url":"https://api.github.com/users/Peercraft/orgs","repos_url":"https://api.github.com/users/Peercraft/repos","events_url":"https://api.github.com/users/Peercraft/events{/privacy}","received_events_url":"https://api.github.com/users/Peercraft/received_events","type":"Organization","site_admin":false},"repo":{"id":41801424,"name":"oauth2-server-php","full_name":"Peercraft/oauth2-server-php","owner":{"login":"Peercraft","id":913505,"avatar_url":"https://avatars.githubusercontent.com/u/913505?v=3","gravatar_id":"","url":"https://api.github.com/users/Peercraft","html_url":"https://github.com/Peercraft","followers_url":"https://api.github.com/users/Peercraft/followers","following_url":"https://api.github.com/users/Peercraft/following{/other_user}","gists_url":"https://api.github.com/users/Peercraft/gists{/gist_id}","starred_url":"https://api.github.com/users/Peercraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peercraft/subscriptions","organizations_url":"https://api.github.com/users/Peercraft/orgs","repos_url":"https://api.github.com/users/Peercraft/repos","events_url":"https://api.github.com/users/Peercraft/events{/privacy}","received_events_url":"https://api.github.com/users/Peercraft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Peercraft/oauth2-server-php","description":"A library for implementing an OAuth2 Server in php","fork":true,"url":"https://api.github.com/repos/Peercraft/oauth2-server-php","forks_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/forks","keys_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/teams","hooks_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/hooks","issue_events_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/issues/events{/number}","events_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/events","assignees_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/assignees{/user}","branches_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/branches{/branch}","tags_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/tags","blobs_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/statuses/{sha}","languages_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/languages","stargazers_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/stargazers","contributors_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/contributors","subscribers_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/subscribers","subscription_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/subscription","commits_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/contents/{+path}","compare_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/merges","archive_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/downloads","issues_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/issues{/number}","pulls_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/pulls{/number}","milestones_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/milestones{/number}","notifications_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/labels{/name}","releases_url":"https://api.github.com/repos/Peercraft/oauth2-server-php/releases{/id}","created_at":"2015-09-02T13:05:14Z","updated_at":"2015-09-02T13:05:14Z","pushed_at":"2015-10-21T09:11:59Z","git_url":"git://github.com/Peercraft/oauth2-server-php.git","ssh_url":"git@github.com:Peercraft/oauth2-server-php.git","clone_url":"https://github.com/Peercraft/oauth2-server-php.git","svn_url":"https://github.com/Peercraft/oauth2-server-php","homepage":"http://bshaffer.github.io/oauth2-server-php-docs","size":4275,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"bshaffer:develop","ref":"develop","sha":"d0b7989c579c45127cfc900733831bc03e219307","user":{"login":"bshaffer","id":103941,"avatar_url":"https://avatars.githubusercontent.com/u/103941?v=3","gravatar_id":"","url":"https://api.github.com/users/bshaffer","html_url":"https://github.com/bshaffer","followers_url":"https://api.github.com/users/bshaffer/followers","following_url":"https://api.github.com/users/bshaffer/following{/other_user}","gists_url":"https://api.github.com/users/bshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaffer/subscriptions","organizations_url":"https://api.github.com/users/bshaffer/orgs","repos_url":"https://api.github.com/users/bshaffer/repos","events_url":"https://api.github.com/users/bshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/bshaffer/received_events","type":"User","site_admin":false},"repo":{"id":5893828,"name":"oauth2-server-php","full_name":"bshaffer/oauth2-server-php","owner":{"login":"bshaffer","id":103941,"avatar_url":"https://avatars.githubusercontent.com/u/103941?v=3","gravatar_id":"","url":"https://api.github.com/users/bshaffer","html_url":"https://github.com/bshaffer","followers_url":"https://api.github.com/users/bshaffer/followers","following_url":"https://api.github.com/users/bshaffer/following{/other_user}","gists_url":"https://api.github.com/users/bshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaffer/subscriptions","organizations_url":"https://api.github.com/users/bshaffer/orgs","repos_url":"https://api.github.com/users/bshaffer/repos","events_url":"https://api.github.com/users/bshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/bshaffer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bshaffer/oauth2-server-php","description":"A library for implementing an OAuth2 Server in php","fork":false,"url":"https://api.github.com/repos/bshaffer/oauth2-server-php","forks_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/forks","keys_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/teams","hooks_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/hooks","issue_events_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/events{/number}","events_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/events","assignees_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/assignees{/user}","branches_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/branches{/branch}","tags_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/tags","blobs_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/statuses/{sha}","languages_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/languages","stargazers_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/stargazers","contributors_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/contributors","subscribers_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/subscribers","subscription_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/subscription","commits_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/contents/{+path}","compare_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/merges","archive_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/downloads","issues_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues{/number}","pulls_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls{/number}","milestones_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/milestones{/number}","notifications_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/labels{/name}","releases_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/releases{/id}","created_at":"2012-09-20T22:22:53Z","updated_at":"2015-10-20T12:49:45Z","pushed_at":"2015-10-21T09:27:43Z","git_url":"git://github.com/bshaffer/oauth2-server-php.git","ssh_url":"git@github.com:bshaffer/oauth2-server-php.git","clone_url":"https://github.com/bshaffer/oauth2-server-php.git","svn_url":"https://github.com/bshaffer/oauth2-server-php","homepage":"http://bshaffer.github.io/oauth2-server-php-docs","size":4633,"stargazers_count":1451,"watchers_count":1451,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":479,"mirror_url":null,"open_issues_count":105,"forks":479,"open_issues":105,"watchers":1451,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls/656"},"html":{"href":"https://github.com/bshaffer/oauth2-server-php/pull/656"},"issue":{"href":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/656"},"comments":{"href":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/656/comments"},"review_comments":{"href":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls/656/comments"},"review_comment":{"href":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bshaffer/oauth2-server-php/pulls/656/commits"},"statuses":{"href":"https://api.github.com/repos/bshaffer/oauth2-server-php/statuses/d794cfa90385b536e3e1e5ac523916af900e2665"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":113,"deletions":9,"changed_files":5}}