{"action":"created","comment":{"url":"https://api.github.com/repos/twreporter/go-api/pulls/comments/219392134","pull_request_review_id":157556101,"id":219392134,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTM5MjEzNA==","diff_hunk":"@@ -42,6 +41,23 @@ func ValidateUserID() gin.HandlerFunc {\n \t}\n }\n \n+func ValidateIDToken() gin.HandlerFunc {\n+\treturn func(c *gin.Context) {\n+\t\tuser := c.Request.Context().Value(\"user\")\n+\n+\t\tclaims := user.(*jwt.Token).Claims\n+\n+\t\tif err := claims.Valid(); nil != err {","path":"middlewares/jwt.go","position":18,"original_position":18,"commit_id":"15c916412d2755f4d3e4c825f403148f443973e2","original_commit_id":"51f7f6d2409801e738ec42691cf9def22d124dea","user":{"login":"babygoat","id":1139696,"node_id":"MDQ6VXNlcjExMzk2OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1139696?v=4","gravatar_id":"","url":"https://api.github.com/users/babygoat","html_url":"https://github.com/babygoat","followers_url":"https://api.github.com/users/babygoat/followers","following_url":"https://api.github.com/users/babygoat/following{/other_user}","gists_url":"https://api.github.com/users/babygoat/gists{/gist_id}","starred_url":"https://api.github.com/users/babygoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babygoat/subscriptions","organizations_url":"https://api.github.com/users/babygoat/orgs","repos_url":"https://api.github.com/users/babygoat/repos","events_url":"https://api.github.com/users/babygoat/events{/privacy}","received_events_url":"https://api.github.com/users/babygoat/received_events","type":"User","site_admin":false},"body":"Will address in the later patch","created_at":"2018-09-21T06:10:54Z","updated_at":"2018-09-21T06:10:54Z","html_url":"https://github.com/twreporter/go-api/pull/158#discussion_r219392134","pull_request_url":"https://api.github.com/repos/twreporter/go-api/pulls/158","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/comments/219392134"},"html":{"href":"https://github.com/twreporter/go-api/pull/158#discussion_r219392134"},"pull_request":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/158"}},"in_reply_to_id":219378859},"pull_request":{"url":"https://api.github.com/repos/twreporter/go-api/pulls/158","id":213786372,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzNzg2Mzcy","html_url":"https://github.com/twreporter/go-api/pull/158","diff_url":"https://github.com/twreporter/go-api/pull/158.diff","patch_url":"https://github.com/twreporter/go-api/pull/158.patch","issue_url":"https://api.github.com/repos/twreporter/go-api/issues/158","number":158,"state":"open","locked":false,"title":"Feature auth endpoints improvement","user":{"login":"babygoat","id":1139696,"node_id":"MDQ6VXNlcjExMzk2OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1139696?v=4","gravatar_id":"","url":"https://api.github.com/users/babygoat","html_url":"https://github.com/babygoat","followers_url":"https://api.github.com/users/babygoat/followers","following_url":"https://api.github.com/users/babygoat/following{/other_user}","gists_url":"https://api.github.com/users/babygoat/gists{/gist_id}","starred_url":"https://api.github.com/users/babygoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babygoat/subscriptions","organizations_url":"https://api.github.com/users/babygoat/orgs","repos_url":"https://api.github.com/users/babygoat/repos","events_url":"https://api.github.com/users/babygoat/events{/privacy}","received_events_url":"https://api.github.com/users/babygoat/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-07T00:33:12Z","updated_at":"2018-09-21T06:10:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"462bd3e0f7b591343c9b7b7a797b492179f6d398","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/twreporter/go-api/pulls/158/commits","review_comments_url":"https://api.github.com/repos/twreporter/go-api/pulls/158/comments","review_comment_url":"https://api.github.com/repos/twreporter/go-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twreporter/go-api/issues/158/comments","statuses_url":"https://api.github.com/repos/twreporter/go-api/statuses/15c916412d2755f4d3e4c825f403148f443973e2","head":{"label":"babygoat:feature-auth-endpoints-improvement","ref":"feature-auth-endpoints-improvement","sha":"15c916412d2755f4d3e4c825f403148f443973e2","user":{"login":"babygoat","id":1139696,"node_id":"MDQ6VXNlcjExMzk2OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1139696?v=4","gravatar_id":"","url":"https://api.github.com/users/babygoat","html_url":"https://github.com/babygoat","followers_url":"https://api.github.com/users/babygoat/followers","following_url":"https://api.github.com/users/babygoat/following{/other_user}","gists_url":"https://api.github.com/users/babygoat/gists{/gist_id}","starred_url":"https://api.github.com/users/babygoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babygoat/subscriptions","organizations_url":"https://api.github.com/users/babygoat/orgs","repos_url":"https://api.github.com/users/babygoat/repos","events_url":"https://api.github.com/users/babygoat/events{/privacy}","received_events_url":"https://api.github.com/users/babygoat/received_events","type":"User","site_admin":false},"repo":{"id":124334206,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQzMzQyMDY=","name":"go-api","full_name":"babygoat/go-api","private":false,"owner":{"login":"babygoat","id":1139696,"node_id":"MDQ6VXNlcjExMzk2OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1139696?v=4","gravatar_id":"","url":"https://api.github.com/users/babygoat","html_url":"https://github.com/babygoat","followers_url":"https://api.github.com/users/babygoat/followers","following_url":"https://api.github.com/users/babygoat/following{/other_user}","gists_url":"https://api.github.com/users/babygoat/gists{/gist_id}","starred_url":"https://api.github.com/users/babygoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babygoat/subscriptions","organizations_url":"https://api.github.com/users/babygoat/orgs","repos_url":"https://api.github.com/users/babygoat/repos","events_url":"https://api.github.com/users/babygoat/events{/privacy}","received_events_url":"https://api.github.com/users/babygoat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/babygoat/go-api","description":"Golang API","fork":true,"url":"https://api.github.com/repos/babygoat/go-api","forks_url":"https://api.github.com/repos/babygoat/go-api/forks","keys_url":"https://api.github.com/repos/babygoat/go-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/babygoat/go-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/babygoat/go-api/teams","hooks_url":"https://api.github.com/repos/babygoat/go-api/hooks","issue_events_url":"https://api.github.com/repos/babygoat/go-api/issues/events{/number}","events_url":"https://api.github.com/repos/babygoat/go-api/events","assignees_url":"https://api.github.com/repos/babygoat/go-api/assignees{/user}","branches_url":"https://api.github.com/repos/babygoat/go-api/branches{/branch}","tags_url":"https://api.github.com/repos/babygoat/go-api/tags","blobs_url":"https://api.github.com/repos/babygoat/go-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/babygoat/go-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/babygoat/go-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/babygoat/go-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/babygoat/go-api/statuses/{sha}","languages_url":"https://api.github.com/repos/babygoat/go-api/languages","stargazers_url":"https://api.github.com/repos/babygoat/go-api/stargazers","contributors_url":"https://api.github.com/repos/babygoat/go-api/contributors","subscribers_url":"https://api.github.com/repos/babygoat/go-api/subscribers","subscription_url":"https://api.github.com/repos/babygoat/go-api/subscription","commits_url":"https://api.github.com/repos/babygoat/go-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/babygoat/go-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/babygoat/go-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/babygoat/go-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/babygoat/go-api/contents/{+path}","compare_url":"https://api.github.com/repos/babygoat/go-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/babygoat/go-api/merges","archive_url":"https://api.github.com/repos/babygoat/go-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/babygoat/go-api/downloads","issues_url":"https://api.github.com/repos/babygoat/go-api/issues{/number}","pulls_url":"https://api.github.com/repos/babygoat/go-api/pulls{/number}","milestones_url":"https://api.github.com/repos/babygoat/go-api/milestones{/number}","notifications_url":"https://api.github.com/repos/babygoat/go-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/babygoat/go-api/labels{/name}","releases_url":"https://api.github.com/repos/babygoat/go-api/releases{/id}","deployments_url":"https://api.github.com/repos/babygoat/go-api/deployments","created_at":"2018-03-08T03:58:49Z","updated_at":"2018-03-08T03:58:50Z","pushed_at":"2018-09-21T06:05:58Z","git_url":"git://github.com/babygoat/go-api.git","ssh_url":"git@github.com:babygoat/go-api.git","clone_url":"https://github.com/babygoat/go-api.git","svn_url":"https://github.com/babygoat/go-api","homepage":null,"size":498,"stargazers_count":0,"watchers_count":0,"language":"Go","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"twreporter:feature-auth-endpoints-v2","ref":"feature-auth-endpoints-v2","sha":"d97d0d85228a8811e44b47379df68c0718277c63","user":{"login":"twreporter","id":13784512,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzg0NTEy","avatar_url":"https://avatars3.githubusercontent.com/u/13784512?v=4","gravatar_id":"","url":"https://api.github.com/users/twreporter","html_url":"https://github.com/twreporter","followers_url":"https://api.github.com/users/twreporter/followers","following_url":"https://api.github.com/users/twreporter/following{/other_user}","gists_url":"https://api.github.com/users/twreporter/gists{/gist_id}","starred_url":"https://api.github.com/users/twreporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twreporter/subscriptions","organizations_url":"https://api.github.com/users/twreporter/orgs","repos_url":"https://api.github.com/users/twreporter/repos","events_url":"https://api.github.com/users/twreporter/events{/privacy}","received_events_url":"https://api.github.com/users/twreporter/received_events","type":"Organization","site_admin":false},"repo":{"id":79105381,"node_id":"MDEwOlJlcG9zaXRvcnk3OTEwNTM4MQ==","name":"go-api","full_name":"twreporter/go-api","private":false,"owner":{"login":"twreporter","id":13784512,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzg0NTEy","avatar_url":"https://avatars3.githubusercontent.com/u/13784512?v=4","gravatar_id":"","url":"https://api.github.com/users/twreporter","html_url":"https://github.com/twreporter","followers_url":"https://api.github.com/users/twreporter/followers","following_url":"https://api.github.com/users/twreporter/following{/other_user}","gists_url":"https://api.github.com/users/twreporter/gists{/gist_id}","starred_url":"https://api.github.com/users/twreporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twreporter/subscriptions","organizations_url":"https://api.github.com/users/twreporter/orgs","repos_url":"https://api.github.com/users/twreporter/repos","events_url":"https://api.github.com/users/twreporter/events{/privacy}","received_events_url":"https://api.github.com/users/twreporter/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/twreporter/go-api","description":"Golang API","fork":false,"url":"https://api.github.com/repos/twreporter/go-api","forks_url":"https://api.github.com/repos/twreporter/go-api/forks","keys_url":"https://api.github.com/repos/twreporter/go-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twreporter/go-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twreporter/go-api/teams","hooks_url":"https://api.github.com/repos/twreporter/go-api/hooks","issue_events_url":"https://api.github.com/repos/twreporter/go-api/issues/events{/number}","events_url":"https://api.github.com/repos/twreporter/go-api/events","assignees_url":"https://api.github.com/repos/twreporter/go-api/assignees{/user}","branches_url":"https://api.github.com/repos/twreporter/go-api/branches{/branch}","tags_url":"https://api.github.com/repos/twreporter/go-api/tags","blobs_url":"https://api.github.com/repos/twreporter/go-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twreporter/go-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twreporter/go-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/twreporter/go-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twreporter/go-api/statuses/{sha}","languages_url":"https://api.github.com/repos/twreporter/go-api/languages","stargazers_url":"https://api.github.com/repos/twreporter/go-api/stargazers","contributors_url":"https://api.github.com/repos/twreporter/go-api/contributors","subscribers_url":"https://api.github.com/repos/twreporter/go-api/subscribers","subscription_url":"https://api.github.com/repos/twreporter/go-api/subscription","commits_url":"https://api.github.com/repos/twreporter/go-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/twreporter/go-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/twreporter/go-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/twreporter/go-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/twreporter/go-api/contents/{+path}","compare_url":"https://api.github.com/repos/twreporter/go-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twreporter/go-api/merges","archive_url":"https://api.github.com/repos/twreporter/go-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twreporter/go-api/downloads","issues_url":"https://api.github.com/repos/twreporter/go-api/issues{/number}","pulls_url":"https://api.github.com/repos/twreporter/go-api/pulls{/number}","milestones_url":"https://api.github.com/repos/twreporter/go-api/milestones{/number}","notifications_url":"https://api.github.com/repos/twreporter/go-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twreporter/go-api/labels{/name}","releases_url":"https://api.github.com/repos/twreporter/go-api/releases{/id}","deployments_url":"https://api.github.com/repos/twreporter/go-api/deployments","created_at":"2017-01-16T09:59:22Z","updated_at":"2018-09-12T08:34:17Z","pushed_at":"2018-09-21T06:05:59Z","git_url":"git://github.com/twreporter/go-api.git","ssh_url":"git@github.com:twreporter/go-api.git","clone_url":"https://github.com/twreporter/go-api.git","svn_url":"https://github.com/twreporter/go-api","homepage":null,"size":497,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/158"},"html":{"href":"https://github.com/twreporter/go-api/pull/158"},"issue":{"href":"https://api.github.com/repos/twreporter/go-api/issues/158"},"comments":{"href":"https://api.github.com/repos/twreporter/go-api/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/twreporter/go-api/statuses/15c916412d2755f4d3e4c825f403148f443973e2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"babygoat"}}