{"action":"created","comment":{"url":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/comments/81050929","pull_request_review_id":2059707,"id":81050929,"diff_hunk":"@@ -17,6 +17,9 @@ const bearer = \"bearer\"\n // UserKey ...\n const UserKey = \"user\"\n \n+// Algorithm used for signing\n+var Alg = jwt.SigningMethodHS256.Alg()\n+\n // TokenExtractor Attempts to extract the token on every request\n func TokenExtractor(logger log.Logger, secret interface{}) kithttp.RequestFunc {","path":"extractor.go","position":8,"original_position":8,"commit_id":"33ce5044057e067e42f6d931d2118fe2421d2e5a","original_commit_id":"33ce5044057e067e42f6d931d2118fe2421d2e5a","user":{"login":"cam-stitt","id":186643,"avatar_url":"https://avatars.githubusercontent.com/u/186643?v=3","gravatar_id":"","url":"https://api.github.com/users/cam-stitt","html_url":"https://github.com/cam-stitt","followers_url":"https://api.github.com/users/cam-stitt/followers","following_url":"https://api.github.com/users/cam-stitt/following{/other_user}","gists_url":"https://api.github.com/users/cam-stitt/gists{/gist_id}","starred_url":"https://api.github.com/users/cam-stitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam-stitt/subscriptions","organizations_url":"https://api.github.com/users/cam-stitt/orgs","repos_url":"https://api.github.com/users/cam-stitt/repos","events_url":"https://api.github.com/users/cam-stitt/events{/privacy}","received_events_url":"https://api.github.com/users/cam-stitt/received_events","type":"User","site_admin":false},"body":"Could we pass the alg as an option to make it a bit more configurable?","created_at":"2016-09-29T01:30:52Z","updated_at":"2016-09-29T01:30:52Z","html_url":"https://github.com/SimpleHQ/simpletoken/pull/1#discussion_r81050929","pull_request_url":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/comments/81050929"},"html":{"href":"https://github.com/SimpleHQ/simpletoken/pull/1#discussion_r81050929"},"pull_request":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/1","id":87231504,"html_url":"https://github.com/SimpleHQ/simpletoken/pull/1","diff_url":"https://github.com/SimpleHQ/simpletoken/pull/1.diff","patch_url":"https://github.com/SimpleHQ/simpletoken/pull/1.patch","issue_url":"https://api.github.com/repos/SimpleHQ/simpletoken/issues/1","number":1,"state":"open","locked":false,"title":"NW-450: change default validation to HS256.","user":{"login":"guyc","id":233158,"avatar_url":"https://avatars.githubusercontent.com/u/233158?v=3","gravatar_id":"","url":"https://api.github.com/users/guyc","html_url":"https://github.com/guyc","followers_url":"https://api.github.com/users/guyc/followers","following_url":"https://api.github.com/users/guyc/following{/other_user}","gists_url":"https://api.github.com/users/guyc/gists{/gist_id}","starred_url":"https://api.github.com/users/guyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyc/subscriptions","organizations_url":"https://api.github.com/users/guyc/orgs","repos_url":"https://api.github.com/users/guyc/repos","events_url":"https://api.github.com/users/guyc/events{/privacy}","received_events_url":"https://api.github.com/users/guyc/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-29T01:30:17Z","updated_at":"2016-09-29T01:30:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba8ff7109da8e86e0165d31870d662da9b4ac69c","assignee":{"login":"cam-stitt","id":186643,"avatar_url":"https://avatars.githubusercontent.com/u/186643?v=3","gravatar_id":"","url":"https://api.github.com/users/cam-stitt","html_url":"https://github.com/cam-stitt","followers_url":"https://api.github.com/users/cam-stitt/followers","following_url":"https://api.github.com/users/cam-stitt/following{/other_user}","gists_url":"https://api.github.com/users/cam-stitt/gists{/gist_id}","starred_url":"https://api.github.com/users/cam-stitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam-stitt/subscriptions","organizations_url":"https://api.github.com/users/cam-stitt/orgs","repos_url":"https://api.github.com/users/cam-stitt/repos","events_url":"https://api.github.com/users/cam-stitt/events{/privacy}","received_events_url":"https://api.github.com/users/cam-stitt/received_events","type":"User","site_admin":false},"assignees":[{"login":"cam-stitt","id":186643,"avatar_url":"https://avatars.githubusercontent.com/u/186643?v=3","gravatar_id":"","url":"https://api.github.com/users/cam-stitt","html_url":"https://github.com/cam-stitt","followers_url":"https://api.github.com/users/cam-stitt/followers","following_url":"https://api.github.com/users/cam-stitt/following{/other_user}","gists_url":"https://api.github.com/users/cam-stitt/gists{/gist_id}","starred_url":"https://api.github.com/users/cam-stitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam-stitt/subscriptions","organizations_url":"https://api.github.com/users/cam-stitt/orgs","repos_url":"https://api.github.com/users/cam-stitt/repos","events_url":"https://api.github.com/users/cam-stitt/events{/privacy}","received_events_url":"https://api.github.com/users/cam-stitt/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/1/commits","review_comments_url":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/1/comments","review_comment_url":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SimpleHQ/simpletoken/issues/1/comments","statuses_url":"https://api.github.com/repos/SimpleHQ/simpletoken/statuses/33ce5044057e067e42f6d931d2118fe2421d2e5a","head":{"label":"SimpleHQ:feature/NW-450","ref":"feature/NW-450","sha":"33ce5044057e067e42f6d931d2118fe2421d2e5a","user":{"login":"SimpleHQ","id":13479077,"avatar_url":"https://avatars.githubusercontent.com/u/13479077?v=3","gravatar_id":"","url":"https://api.github.com/users/SimpleHQ","html_url":"https://github.com/SimpleHQ","followers_url":"https://api.github.com/users/SimpleHQ/followers","following_url":"https://api.github.com/users/SimpleHQ/following{/other_user}","gists_url":"https://api.github.com/users/SimpleHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/SimpleHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimpleHQ/subscriptions","organizations_url":"https://api.github.com/users/SimpleHQ/orgs","repos_url":"https://api.github.com/users/SimpleHQ/repos","events_url":"https://api.github.com/users/SimpleHQ/events{/privacy}","received_events_url":"https://api.github.com/users/SimpleHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":61072440,"name":"simpletoken","full_name":"SimpleHQ/simpletoken","owner":{"login":"SimpleHQ","id":13479077,"avatar_url":"https://avatars.githubusercontent.com/u/13479077?v=3","gravatar_id":"","url":"https://api.github.com/users/SimpleHQ","html_url":"https://github.com/SimpleHQ","followers_url":"https://api.github.com/users/SimpleHQ/followers","following_url":"https://api.github.com/users/SimpleHQ/following{/other_user}","gists_url":"https://api.github.com/users/SimpleHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/SimpleHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimpleHQ/subscriptions","organizations_url":"https://api.github.com/users/SimpleHQ/orgs","repos_url":"https://api.github.com/users/SimpleHQ/repos","events_url":"https://api.github.com/users/SimpleHQ/events{/privacy}","received_events_url":"https://api.github.com/users/SimpleHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SimpleHQ/simpletoken","description":"Decodes our auth0 tokens.","fork":false,"url":"https://api.github.com/repos/SimpleHQ/simpletoken","forks_url":"https://api.github.com/repos/SimpleHQ/simpletoken/forks","keys_url":"https://api.github.com/repos/SimpleHQ/simpletoken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimpleHQ/simpletoken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimpleHQ/simpletoken/teams","hooks_url":"https://api.github.com/repos/SimpleHQ/simpletoken/hooks","issue_events_url":"https://api.github.com/repos/SimpleHQ/simpletoken/issues/events{/number}","events_url":"https://api.github.com/repos/SimpleHQ/simpletoken/events","assignees_url":"https://api.github.com/repos/SimpleHQ/simpletoken/assignees{/user}","branches_url":"https://api.github.com/repos/SimpleHQ/simpletoken/branches{/branch}","tags_url":"https://api.github.com/repos/SimpleHQ/simpletoken/tags","blobs_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimpleHQ/simpletoken/statuses/{sha}","languages_url":"https://api.github.com/repos/SimpleHQ/simpletoken/languages","stargazers_url":"https://api.github.com/repos/SimpleHQ/simpletoken/stargazers","contributors_url":"https://api.github.com/repos/SimpleHQ/simpletoken/contributors","subscribers_url":"https://api.github.com/repos/SimpleHQ/simpletoken/subscribers","subscription_url":"https://api.github.com/repos/SimpleHQ/simpletoken/subscription","commits_url":"https://api.github.com/repos/SimpleHQ/simpletoken/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimpleHQ/simpletoken/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimpleHQ/simpletoken/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimpleHQ/simpletoken/contents/{+path}","compare_url":"https://api.github.com/repos/SimpleHQ/simpletoken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimpleHQ/simpletoken/merges","archive_url":"https://api.github.com/repos/SimpleHQ/simpletoken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimpleHQ/simpletoken/downloads","issues_url":"https://api.github.com/repos/SimpleHQ/simpletoken/issues{/number}","pulls_url":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls{/number}","milestones_url":"https://api.github.com/repos/SimpleHQ/simpletoken/milestones{/number}","notifications_url":"https://api.github.com/repos/SimpleHQ/simpletoken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimpleHQ/simpletoken/labels{/name}","releases_url":"https://api.github.com/repos/SimpleHQ/simpletoken/releases{/id}","deployments_url":"https://api.github.com/repos/SimpleHQ/simpletoken/deployments","created_at":"2016-06-13T21:56:38Z","updated_at":"2016-06-14T02:24:50Z","pushed_at":"2016-09-29T01:30:17Z","git_url":"git://github.com/SimpleHQ/simpletoken.git","ssh_url":"git@github.com:SimpleHQ/simpletoken.git","clone_url":"https://github.com/SimpleHQ/simpletoken.git","svn_url":"https://github.com/SimpleHQ/simpletoken","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SimpleHQ:master","ref":"master","sha":"4b91aa6a89efa0935bb3125ca6aa2f03201e2bf6","user":{"login":"SimpleHQ","id":13479077,"avatar_url":"https://avatars.githubusercontent.com/u/13479077?v=3","gravatar_id":"","url":"https://api.github.com/users/SimpleHQ","html_url":"https://github.com/SimpleHQ","followers_url":"https://api.github.com/users/SimpleHQ/followers","following_url":"https://api.github.com/users/SimpleHQ/following{/other_user}","gists_url":"https://api.github.com/users/SimpleHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/SimpleHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimpleHQ/subscriptions","organizations_url":"https://api.github.com/users/SimpleHQ/orgs","repos_url":"https://api.github.com/users/SimpleHQ/repos","events_url":"https://api.github.com/users/SimpleHQ/events{/privacy}","received_events_url":"https://api.github.com/users/SimpleHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":61072440,"name":"simpletoken","full_name":"SimpleHQ/simpletoken","owner":{"login":"SimpleHQ","id":13479077,"avatar_url":"https://avatars.githubusercontent.com/u/13479077?v=3","gravatar_id":"","url":"https://api.github.com/users/SimpleHQ","html_url":"https://github.com/SimpleHQ","followers_url":"https://api.github.com/users/SimpleHQ/followers","following_url":"https://api.github.com/users/SimpleHQ/following{/other_user}","gists_url":"https://api.github.com/users/SimpleHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/SimpleHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimpleHQ/subscriptions","organizations_url":"https://api.github.com/users/SimpleHQ/orgs","repos_url":"https://api.github.com/users/SimpleHQ/repos","events_url":"https://api.github.com/users/SimpleHQ/events{/privacy}","received_events_url":"https://api.github.com/users/SimpleHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SimpleHQ/simpletoken","description":"Decodes our auth0 tokens.","fork":false,"url":"https://api.github.com/repos/SimpleHQ/simpletoken","forks_url":"https://api.github.com/repos/SimpleHQ/simpletoken/forks","keys_url":"https://api.github.com/repos/SimpleHQ/simpletoken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimpleHQ/simpletoken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimpleHQ/simpletoken/teams","hooks_url":"https://api.github.com/repos/SimpleHQ/simpletoken/hooks","issue_events_url":"https://api.github.com/repos/SimpleHQ/simpletoken/issues/events{/number}","events_url":"https://api.github.com/repos/SimpleHQ/simpletoken/events","assignees_url":"https://api.github.com/repos/SimpleHQ/simpletoken/assignees{/user}","branches_url":"https://api.github.com/repos/SimpleHQ/simpletoken/branches{/branch}","tags_url":"https://api.github.com/repos/SimpleHQ/simpletoken/tags","blobs_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimpleHQ/simpletoken/statuses/{sha}","languages_url":"https://api.github.com/repos/SimpleHQ/simpletoken/languages","stargazers_url":"https://api.github.com/repos/SimpleHQ/simpletoken/stargazers","contributors_url":"https://api.github.com/repos/SimpleHQ/simpletoken/contributors","subscribers_url":"https://api.github.com/repos/SimpleHQ/simpletoken/subscribers","subscription_url":"https://api.github.com/repos/SimpleHQ/simpletoken/subscription","commits_url":"https://api.github.com/repos/SimpleHQ/simpletoken/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimpleHQ/simpletoken/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimpleHQ/simpletoken/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimpleHQ/simpletoken/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimpleHQ/simpletoken/contents/{+path}","compare_url":"https://api.github.com/repos/SimpleHQ/simpletoken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimpleHQ/simpletoken/merges","archive_url":"https://api.github.com/repos/SimpleHQ/simpletoken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimpleHQ/simpletoken/downloads","issues_url":"https://api.github.com/repos/SimpleHQ/simpletoken/issues{/number}","pulls_url":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls{/number}","milestones_url":"https://api.github.com/repos/SimpleHQ/simpletoken/milestones{/number}","notifications_url":"https://api.github.com/repos/SimpleHQ/simpletoken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimpleHQ/simpletoken/labels{/name}","releases_url":"https://api.github.com/repos/SimpleHQ/simpletoken/releases{/id}","deployments_url":"https://api.github.com/repos/SimpleHQ/simpletoken/deployments","created_at":"2016-06-13T21:56:38Z","updated_at":"2016-06-14T02:24:50Z","pushed_at":"2016-09-29T01:30:17Z","git_url":"git://github.com/SimpleHQ/simpletoken.git","ssh_url":"git@github.com:SimpleHQ/simpletoken.git","clone_url":"https://github.com/SimpleHQ/simpletoken.git","svn_url":"https://github.com/SimpleHQ/simpletoken","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/1"},"html":{"href":"https://github.com/SimpleHQ/simpletoken/pull/1"},"issue":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/issues/1"},"comments":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/SimpleHQ/simpletoken/statuses/33ce5044057e067e42f6d931d2118fe2421d2e5a"}}}}
{"actor":{"display_login":"cam-stitt"}}