{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls/4","id":223549714,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNTQ5NzE0","html_url":"https://github.com/wshirey/kong-plugin-jwt-claims-headers/pull/4","diff_url":"https://github.com/wshirey/kong-plugin-jwt-claims-headers/pull/4.diff","patch_url":"https://github.com/wshirey/kong-plugin-jwt-claims-headers/pull/4.patch","issue_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/issues/4","number":4,"state":"open","locked":false,"title":"Do not attempt to decode JWT token when token is missing","user":{"login":"nathanmac","id":3205902,"node_id":"MDQ6VXNlcjMyMDU5MDI=","avatar_url":"https://avatars0.githubusercontent.com/u/3205902?v=4","gravatar_id":"","url":"https://api.github.com/users/nathanmac","html_url":"https://github.com/nathanmac","followers_url":"https://api.github.com/users/nathanmac/followers","following_url":"https://api.github.com/users/nathanmac/following{/other_user}","gists_url":"https://api.github.com/users/nathanmac/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanmac/subscriptions","organizations_url":"https://api.github.com/users/nathanmac/orgs","repos_url":"https://api.github.com/users/nathanmac/repos","events_url":"https://api.github.com/users/nathanmac/events{/privacy}","received_events_url":"https://api.github.com/users/nathanmac/received_events","type":"User","site_admin":false},"body":"The kong plugin `kong.plugins.jwt.jwt_parser` throws an error when attempting to decode a nil value this change prevents jwt_decoder from being called when the token is not present and continue_on_error is enabled.\r\n\r\nHere is the error, this is running kong v0.14.1\r\n```\r\n[error] 35#0: *972894 lua coroutine: runtime error: ...hare/lua/5.1/kong/plugins/jwt-claims-headers/handler.lua:53: Token must be a string, got nil\r\nstack traceback:\r\ncoroutine 0:\r\n\t[C]: in function 'error'\r\n\t/usr/local/share/lua/5.1/kong/plugins/jwt/jwt_parser.lua:214: in function 'new'\r\n\t...hare/lua/5.1/kong/plugins/jwt-claims-headers/handler.lua:53: in function &lt;...hare/lua/5.1/kong/plugins/jwt-claims-headers/handler.lua:40&gt;\r\ncoroutine 1:\r\n```","created_at":"2018-10-17T10:30:12Z","updated_at":"2018-10-17T10:30:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls/4/commits","review_comments_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls/4/comments","review_comment_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/issues/4/comments","statuses_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/statuses/705b34f3ba2c88f22c947489c2d169a92a48839e","head":{"label":"meltwater:master","ref":"master","sha":"705b34f3ba2c88f22c947489c2d169a92a48839e","user":{"login":"meltwater","id":740088,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MDA4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/740088?v=4","gravatar_id":"","url":"https://api.github.com/users/meltwater","html_url":"https://github.com/meltwater","followers_url":"https://api.github.com/users/meltwater/followers","following_url":"https://api.github.com/users/meltwater/following{/other_user}","gists_url":"https://api.github.com/users/meltwater/gists{/gist_id}","starred_url":"https://api.github.com/users/meltwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meltwater/subscriptions","organizations_url":"https://api.github.com/users/meltwater/orgs","repos_url":"https://api.github.com/users/meltwater/repos","events_url":"https://api.github.com/users/meltwater/events{/privacy}","received_events_url":"https://api.github.com/users/meltwater/received_events","type":"Organization","site_admin":false},"repo":{"id":153244330,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMyNDQzMzA=","name":"kong-plugin-jwt-claims-headers","full_name":"meltwater/kong-plugin-jwt-claims-headers","private":false,"owner":{"login":"meltwater","id":740088,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MDA4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/740088?v=4","gravatar_id":"","url":"https://api.github.com/users/meltwater","html_url":"https://github.com/meltwater","followers_url":"https://api.github.com/users/meltwater/followers","following_url":"https://api.github.com/users/meltwater/following{/other_user}","gists_url":"https://api.github.com/users/meltwater/gists{/gist_id}","starred_url":"https://api.github.com/users/meltwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meltwater/subscriptions","organizations_url":"https://api.github.com/users/meltwater/orgs","repos_url":"https://api.github.com/users/meltwater/repos","events_url":"https://api.github.com/users/meltwater/events{/privacy}","received_events_url":"https://api.github.com/users/meltwater/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/meltwater/kong-plugin-jwt-claims-headers","description":"A Kong plugin that will add JWT claims as request headers","fork":true,"url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers","forks_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/forks","keys_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/teams","hooks_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/hooks","issue_events_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/issues/events{/number}","events_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/events","assignees_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/assignees{/user}","branches_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/branches{/branch}","tags_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/tags","blobs_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/git/refs{/sha}","trees_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/statuses/{sha}","languages_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/languages","stargazers_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/stargazers","contributors_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/contributors","subscribers_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/subscribers","subscription_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/subscription","commits_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/commits{/sha}","git_commits_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/git/commits{/sha}","comments_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/comments{/number}","issue_comment_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/issues/comments{/number}","contents_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/contents/{+path}","compare_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/merges","archive_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/downloads","issues_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/issues{/number}","pulls_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/pulls{/number}","milestones_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/milestones{/number}","notifications_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/labels{/name}","releases_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/releases{/id}","deployments_url":"https://api.github.com/repos/meltwater/kong-plugin-jwt-claims-headers/deployments","created_at":"2018-10-16T07:48:34Z","updated_at":"2018-10-17T10:04:39Z","pushed_at":"2018-10-17T10:04:37Z","git_url":"git://github.com/meltwater/kong-plugin-jwt-claims-headers.git","ssh_url":"git@github.com:meltwater/kong-plugin-jwt-claims-headers.git","clone_url":"https://github.com/meltwater/kong-plugin-jwt-claims-headers.git","svn_url":"https://github.com/meltwater/kong-plugin-jwt-claims-headers","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"wshirey:master","ref":"master","sha":"87f16d198c8105431f9d3a7d66f63ca43527a24f","user":{"login":"wshirey","id":1452263,"node_id":"MDQ6VXNlcjE0NTIyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1452263?v=4","gravatar_id":"","url":"https://api.github.com/users/wshirey","html_url":"https://github.com/wshirey","followers_url":"https://api.github.com/users/wshirey/followers","following_url":"https://api.github.com/users/wshirey/following{/other_user}","gists_url":"https://api.github.com/users/wshirey/gists{/gist_id}","starred_url":"https://api.github.com/users/wshirey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wshirey/subscriptions","organizations_url":"https://api.github.com/users/wshirey/orgs","repos_url":"https://api.github.com/users/wshirey/repos","events_url":"https://api.github.com/users/wshirey/events{/privacy}","received_events_url":"https://api.github.com/users/wshirey/received_events","type":"User","site_admin":false},"repo":{"id":63281294,"node_id":"MDEwOlJlcG9zaXRvcnk2MzI4MTI5NA==","name":"kong-plugin-jwt-claims-headers","full_name":"wshirey/kong-plugin-jwt-claims-headers","private":false,"owner":{"login":"wshirey","id":1452263,"node_id":"MDQ6VXNlcjE0NTIyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1452263?v=4","gravatar_id":"","url":"https://api.github.com/users/wshirey","html_url":"https://github.com/wshirey","followers_url":"https://api.github.com/users/wshirey/followers","following_url":"https://api.github.com/users/wshirey/following{/other_user}","gists_url":"https://api.github.com/users/wshirey/gists{/gist_id}","starred_url":"https://api.github.com/users/wshirey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wshirey/subscriptions","organizations_url":"https://api.github.com/users/wshirey/orgs","repos_url":"https://api.github.com/users/wshirey/repos","events_url":"https://api.github.com/users/wshirey/events{/privacy}","received_events_url":"https://api.github.com/users/wshirey/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wshirey/kong-plugin-jwt-claims-headers","description":"A Kong plugin that will add JWT claims as request headers","fork":false,"url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers","forks_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/forks","keys_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/teams","hooks_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/hooks","issue_events_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/issues/events{/number}","events_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/events","assignees_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/assignees{/user}","branches_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/branches{/branch}","tags_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/tags","blobs_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/git/refs{/sha}","trees_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/statuses/{sha}","languages_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/languages","stargazers_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/stargazers","contributors_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/contributors","subscribers_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/subscribers","subscription_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/subscription","commits_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/commits{/sha}","git_commits_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/git/commits{/sha}","comments_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/comments{/number}","issue_comment_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/issues/comments{/number}","contents_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/contents/{+path}","compare_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/merges","archive_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/downloads","issues_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/issues{/number}","pulls_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls{/number}","milestones_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/milestones{/number}","notifications_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/labels{/name}","releases_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/releases{/id}","deployments_url":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/deployments","created_at":"2016-07-13T21:37:22Z","updated_at":"2018-10-15T12:39:58Z","pushed_at":"2018-02-15T01:10:18Z","git_url":"git://github.com/wshirey/kong-plugin-jwt-claims-headers.git","ssh_url":"git@github.com:wshirey/kong-plugin-jwt-claims-headers.git","clone_url":"https://github.com/wshirey/kong-plugin-jwt-claims-headers.git","svn_url":"https://github.com/wshirey/kong-plugin-jwt-claims-headers","homepage":null,"size":4,"stargazers_count":29,"watchers_count":29,"language":"Lua","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":14,"open_issues":1,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls/4"},"html":{"href":"https://github.com/wshirey/kong-plugin-jwt-claims-headers/pull/4"},"issue":{"href":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/issues/4"},"comments":{"href":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/wshirey/kong-plugin-jwt-claims-headers/statuses/705b34f3ba2c88f22c947489c2d169a92a48839e"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":2,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"nathanmac"}}