{"action":"closed","number":35,"pull_request":{"url":"https://api.github.com/repos/paragonie/paseto/pulls/35","id":167225875,"html_url":"https://github.com/paragonie/paseto/pull/35","diff_url":"https://github.com/paragonie/paseto/pull/35.diff","patch_url":"https://github.com/paragonie/paseto/pull/35.patch","issue_url":"https://api.github.com/repos/paragonie/paseto/issues/35","number":35,"state":"closed","locked":false,"title":"Allowed protocols as a type","user":{"login":"aidantwoods","id":3288888,"avatar_url":"https://avatars1.githubusercontent.com/u/3288888?v=4","gravatar_id":"","url":"https://api.github.com/users/aidantwoods","html_url":"https://github.com/aidantwoods","followers_url":"https://api.github.com/users/aidantwoods/followers","following_url":"https://api.github.com/users/aidantwoods/following{/other_user}","gists_url":"https://api.github.com/users/aidantwoods/gists{/gist_id}","starred_url":"https://api.github.com/users/aidantwoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidantwoods/subscriptions","organizations_url":"https://api.github.com/users/aidantwoods/orgs","repos_url":"https://api.github.com/users/aidantwoods/repos","events_url":"https://api.github.com/users/aidantwoods/events{/privacy}","received_events_url":"https://api.github.com/users/aidantwoods/received_events","type":"User","site_admin":false},"body":"Instead of maintaining a whitelist of allowed protocol implementations in a switch/case buried in a method, the whitelist is now in `ParagonIE\\Paseto\\ProtocolCollection::WHITELIST`.\r\n\r\nAlso make protocol version validation implicit in the construction of a `ProtocolCollection`, so that invalid nonsense protocol header strings just fail to construct a `ProtocolInterface` (instead of trying to validate the string values everywhere they are used).","created_at":"2018-02-05T18:55:35Z","updated_at":"2018-03-02T21:03:44Z","closed_at":"2018-03-02T21:03:44Z","merged_at":"2018-03-02T21:03:44Z","merge_commit_sha":"4f680ac3186d4b661de2e3cefaae716e5075a6ef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/paragonie/paseto/pulls/35/commits","review_comments_url":"https://api.github.com/repos/paragonie/paseto/pulls/35/comments","review_comment_url":"https://api.github.com/repos/paragonie/paseto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paragonie/paseto/issues/35/comments","statuses_url":"https://api.github.com/repos/paragonie/paseto/statuses/60613bc46a46f9344d48848681b99d84d6a739bd","head":{"label":"aidantwoods:types/allowed-protocols","ref":"types/allowed-protocols","sha":"60613bc46a46f9344d48848681b99d84d6a739bd","user":{"login":"aidantwoods","id":3288888,"avatar_url":"https://avatars1.githubusercontent.com/u/3288888?v=4","gravatar_id":"","url":"https://api.github.com/users/aidantwoods","html_url":"https://github.com/aidantwoods","followers_url":"https://api.github.com/users/aidantwoods/followers","following_url":"https://api.github.com/users/aidantwoods/following{/other_user}","gists_url":"https://api.github.com/users/aidantwoods/gists{/gist_id}","starred_url":"https://api.github.com/users/aidantwoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidantwoods/subscriptions","organizations_url":"https://api.github.com/users/aidantwoods/orgs","repos_url":"https://api.github.com/users/aidantwoods/repos","events_url":"https://api.github.com/users/aidantwoods/events{/privacy}","received_events_url":"https://api.github.com/users/aidantwoods/received_events","type":"User","site_admin":false},"repo":{"id":120147334,"name":"paseto","full_name":"aidantwoods/paseto","owner":{"login":"aidantwoods","id":3288888,"avatar_url":"https://avatars1.githubusercontent.com/u/3288888?v=4","gravatar_id":"","url":"https://api.github.com/users/aidantwoods","html_url":"https://github.com/aidantwoods","followers_url":"https://api.github.com/users/aidantwoods/followers","following_url":"https://api.github.com/users/aidantwoods/following{/other_user}","gists_url":"https://api.github.com/users/aidantwoods/gists{/gist_id}","starred_url":"https://api.github.com/users/aidantwoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidantwoods/subscriptions","organizations_url":"https://api.github.com/users/aidantwoods/orgs","repos_url":"https://api.github.com/users/aidantwoods/repos","events_url":"https://api.github.com/users/aidantwoods/events{/privacy}","received_events_url":"https://api.github.com/users/aidantwoods/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aidantwoods/paseto","description":"Platform-Agnostic Security Tokens","fork":true,"url":"https://api.github.com/repos/aidantwoods/paseto","forks_url":"https://api.github.com/repos/aidantwoods/paseto/forks","keys_url":"https://api.github.com/repos/aidantwoods/paseto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aidantwoods/paseto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aidantwoods/paseto/teams","hooks_url":"https://api.github.com/repos/aidantwoods/paseto/hooks","issue_events_url":"https://api.github.com/repos/aidantwoods/paseto/issues/events{/number}","events_url":"https://api.github.com/repos/aidantwoods/paseto/events","assignees_url":"https://api.github.com/repos/aidantwoods/paseto/assignees{/user}","branches_url":"https://api.github.com/repos/aidantwoods/paseto/branches{/branch}","tags_url":"https://api.github.com/repos/aidantwoods/paseto/tags","blobs_url":"https://api.github.com/repos/aidantwoods/paseto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aidantwoods/paseto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aidantwoods/paseto/git/refs{/sha}","trees_url":"https://api.github.com/repos/aidantwoods/paseto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aidantwoods/paseto/statuses/{sha}","languages_url":"https://api.github.com/repos/aidantwoods/paseto/languages","stargazers_url":"https://api.github.com/repos/aidantwoods/paseto/stargazers","contributors_url":"https://api.github.com/repos/aidantwoods/paseto/contributors","subscribers_url":"https://api.github.com/repos/aidantwoods/paseto/subscribers","subscription_url":"https://api.github.com/repos/aidantwoods/paseto/subscription","commits_url":"https://api.github.com/repos/aidantwoods/paseto/commits{/sha}","git_commits_url":"https://api.github.com/repos/aidantwoods/paseto/git/commits{/sha}","comments_url":"https://api.github.com/repos/aidantwoods/paseto/comments{/number}","issue_comment_url":"https://api.github.com/repos/aidantwoods/paseto/issues/comments{/number}","contents_url":"https://api.github.com/repos/aidantwoods/paseto/contents/{+path}","compare_url":"https://api.github.com/repos/aidantwoods/paseto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aidantwoods/paseto/merges","archive_url":"https://api.github.com/repos/aidantwoods/paseto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aidantwoods/paseto/downloads","issues_url":"https://api.github.com/repos/aidantwoods/paseto/issues{/number}","pulls_url":"https://api.github.com/repos/aidantwoods/paseto/pulls{/number}","milestones_url":"https://api.github.com/repos/aidantwoods/paseto/milestones{/number}","notifications_url":"https://api.github.com/repos/aidantwoods/paseto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aidantwoods/paseto/labels{/name}","releases_url":"https://api.github.com/repos/aidantwoods/paseto/releases{/id}","deployments_url":"https://api.github.com/repos/aidantwoods/paseto/deployments","created_at":"2018-02-04T02:08:36Z","updated_at":"2018-02-04T02:08:38Z","pushed_at":"2018-02-07T22:25:28Z","git_url":"git://github.com/aidantwoods/paseto.git","ssh_url":"git@github.com:aidantwoods/paseto.git","clone_url":"https://github.com/aidantwoods/paseto.git","svn_url":"https://github.com/aidantwoods/paseto","homepage":null,"size":192,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"paragonie:master","ref":"master","sha":"c44d33467662f23d3d6ef7ea22f8926333a8e763","user":{"login":"paragonie","id":11591525,"avatar_url":"https://avatars2.githubusercontent.com/u/11591525?v=4","gravatar_id":"","url":"https://api.github.com/users/paragonie","html_url":"https://github.com/paragonie","followers_url":"https://api.github.com/users/paragonie/followers","following_url":"https://api.github.com/users/paragonie/following{/other_user}","gists_url":"https://api.github.com/users/paragonie/gists{/gist_id}","starred_url":"https://api.github.com/users/paragonie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paragonie/subscriptions","organizations_url":"https://api.github.com/users/paragonie/orgs","repos_url":"https://api.github.com/users/paragonie/repos","events_url":"https://api.github.com/users/paragonie/events{/privacy}","received_events_url":"https://api.github.com/users/paragonie/received_events","type":"Organization","site_admin":false},"repo":{"id":115975835,"name":"paseto","full_name":"paragonie/paseto","owner":{"login":"paragonie","id":11591525,"avatar_url":"https://avatars2.githubusercontent.com/u/11591525?v=4","gravatar_id":"","url":"https://api.github.com/users/paragonie","html_url":"https://github.com/paragonie","followers_url":"https://api.github.com/users/paragonie/followers","following_url":"https://api.github.com/users/paragonie/following{/other_user}","gists_url":"https://api.github.com/users/paragonie/gists{/gist_id}","starred_url":"https://api.github.com/users/paragonie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paragonie/subscriptions","organizations_url":"https://api.github.com/users/paragonie/orgs","repos_url":"https://api.github.com/users/paragonie/repos","events_url":"https://api.github.com/users/paragonie/events{/privacy}","received_events_url":"https://api.github.com/users/paragonie/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paragonie/paseto","description":"Platform-Agnostic Security Tokens","fork":false,"url":"https://api.github.com/repos/paragonie/paseto","forks_url":"https://api.github.com/repos/paragonie/paseto/forks","keys_url":"https://api.github.com/repos/paragonie/paseto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paragonie/paseto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paragonie/paseto/teams","hooks_url":"https://api.github.com/repos/paragonie/paseto/hooks","issue_events_url":"https://api.github.com/repos/paragonie/paseto/issues/events{/number}","events_url":"https://api.github.com/repos/paragonie/paseto/events","assignees_url":"https://api.github.com/repos/paragonie/paseto/assignees{/user}","branches_url":"https://api.github.com/repos/paragonie/paseto/branches{/branch}","tags_url":"https://api.github.com/repos/paragonie/paseto/tags","blobs_url":"https://api.github.com/repos/paragonie/paseto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paragonie/paseto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paragonie/paseto/git/refs{/sha}","trees_url":"https://api.github.com/repos/paragonie/paseto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paragonie/paseto/statuses/{sha}","languages_url":"https://api.github.com/repos/paragonie/paseto/languages","stargazers_url":"https://api.github.com/repos/paragonie/paseto/stargazers","contributors_url":"https://api.github.com/repos/paragonie/paseto/contributors","subscribers_url":"https://api.github.com/repos/paragonie/paseto/subscribers","subscription_url":"https://api.github.com/repos/paragonie/paseto/subscription","commits_url":"https://api.github.com/repos/paragonie/paseto/commits{/sha}","git_commits_url":"https://api.github.com/repos/paragonie/paseto/git/commits{/sha}","comments_url":"https://api.github.com/repos/paragonie/paseto/comments{/number}","issue_comment_url":"https://api.github.com/repos/paragonie/paseto/issues/comments{/number}","contents_url":"https://api.github.com/repos/paragonie/paseto/contents/{+path}","compare_url":"https://api.github.com/repos/paragonie/paseto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paragonie/paseto/merges","archive_url":"https://api.github.com/repos/paragonie/paseto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paragonie/paseto/downloads","issues_url":"https://api.github.com/repos/paragonie/paseto/issues{/number}","pulls_url":"https://api.github.com/repos/paragonie/paseto/pulls{/number}","milestones_url":"https://api.github.com/repos/paragonie/paseto/milestones{/number}","notifications_url":"https://api.github.com/repos/paragonie/paseto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paragonie/paseto/labels{/name}","releases_url":"https://api.github.com/repos/paragonie/paseto/releases{/id}","deployments_url":"https://api.github.com/repos/paragonie/paseto/deployments","created_at":"2018-01-02T04:50:29Z","updated_at":"2018-03-02T19:03:21Z","pushed_at":"2018-03-02T21:03:44Z","git_url":"git://github.com/paragonie/paseto.git","ssh_url":"git@github.com:paragonie/paseto.git","clone_url":"https://github.com/paragonie/paseto.git","svn_url":"https://github.com/paragonie/paseto","homepage":null,"size":148,"stargazers_count":1426,"watchers_count":1426,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":27,"open_issues":9,"watchers":1426,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paragonie/paseto/pulls/35"},"html":{"href":"https://github.com/paragonie/paseto/pull/35"},"issue":{"href":"https://api.github.com/repos/paragonie/paseto/issues/35"},"comments":{"href":"https://api.github.com/repos/paragonie/paseto/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/paragonie/paseto/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/paragonie/paseto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paragonie/paseto/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/paragonie/paseto/statuses/60613bc46a46f9344d48848681b99d84d6a739bd"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"paragonie-scott","id":11591518,"avatar_url":"https://avatars1.githubusercontent.com/u/11591518?v=4","gravatar_id":"","url":"https://api.github.com/users/paragonie-scott","html_url":"https://github.com/paragonie-scott","followers_url":"https://api.github.com/users/paragonie-scott/followers","following_url":"https://api.github.com/users/paragonie-scott/following{/other_user}","gists_url":"https://api.github.com/users/paragonie-scott/gists{/gist_id}","starred_url":"https://api.github.com/users/paragonie-scott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paragonie-scott/subscriptions","organizations_url":"https://api.github.com/users/paragonie-scott/orgs","repos_url":"https://api.github.com/users/paragonie-scott/repos","events_url":"https://api.github.com/users/paragonie-scott/events{/privacy}","received_events_url":"https://api.github.com/users/paragonie-scott/received_events","type":"User","site_admin":false},"comments":2,"review_comments":2,"maintainer_can_modify":false,"commits":6,"additions":219,"deletions":72,"changed_files":12}}
{"actor":{"display_login":"paragonie-scott"}}