{"action":"opened","number":3331,"pull_request":{"url":"https://api.github.com/repos/Kong/kong/pulls/3331","id":176827558,"html_url":"https://github.com/Kong/kong/pull/3331","diff_url":"https://github.com/Kong/kong/pull/3331.diff","patch_url":"https://github.com/Kong/kong/pull/3331.patch","issue_url":"https://api.github.com/repos/Kong/kong/issues/3331","number":3331,"state":"open","locked":false,"title":"added support for maximum duration","user":{"login":"mvanholsteijn","id":576619,"avatar_url":"https://avatars3.githubusercontent.com/u/576619?v=4","gravatar_id":"","url":"https://api.github.com/users/mvanholsteijn","html_url":"https://github.com/mvanholsteijn","followers_url":"https://api.github.com/users/mvanholsteijn/followers","following_url":"https://api.github.com/users/mvanholsteijn/following{/other_user}","gists_url":"https://api.github.com/users/mvanholsteijn/gists{/gist_id}","starred_url":"https://api.github.com/users/mvanholsteijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvanholsteijn/subscriptions","organizations_url":"https://api.github.com/users/mvanholsteijn/orgs","repos_url":"https://api.github.com/users/mvanholsteijn/repos","events_url":"https://api.github.com/users/mvanholsteijn/events{/privacy}","received_events_url":"https://api.github.com/users/mvanholsteijn/received_events","type":"User","site_admin":false},"body":"### Summary\r\n\r\nSupport for limiting the expiration period on JWT tokens.\r\n\r\nIn the JWT plugin you can set  the property 'maximum_expiration'  to a positive integer, indicating the maximum number of seconds between the 'nbf' and 'exp' claims in the token. \r\n\r\nThe purpose of this feature is to prevent the use of tokens with extreme long lifetimes.\r\n\r\n### Full changelog\r\n- Added the 'maximum_expiration' to the jwt plugin schema\r\n- Added a check in the handler\r\n- Added unit tests for handler and schema.\r\n\r\n","created_at":"2018-03-22T16:01:29Z","updated_at":"2018-03-22T16:01:29Z","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/Kong/kong/pulls/3331/commits","review_comments_url":"https://api.github.com/repos/Kong/kong/pulls/3331/comments","review_comment_url":"https://api.github.com/repos/Kong/kong/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kong/kong/issues/3331/comments","statuses_url":"https://api.github.com/repos/Kong/kong/statuses/3017711c2689360871956dc4a8fd5465417b51df","head":{"label":"mvanholsteijn:maximum_expiration","ref":"maximum_expiration","sha":"3017711c2689360871956dc4a8fd5465417b51df","user":{"login":"mvanholsteijn","id":576619,"avatar_url":"https://avatars3.githubusercontent.com/u/576619?v=4","gravatar_id":"","url":"https://api.github.com/users/mvanholsteijn","html_url":"https://github.com/mvanholsteijn","followers_url":"https://api.github.com/users/mvanholsteijn/followers","following_url":"https://api.github.com/users/mvanholsteijn/following{/other_user}","gists_url":"https://api.github.com/users/mvanholsteijn/gists{/gist_id}","starred_url":"https://api.github.com/users/mvanholsteijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvanholsteijn/subscriptions","organizations_url":"https://api.github.com/users/mvanholsteijn/orgs","repos_url":"https://api.github.com/users/mvanholsteijn/repos","events_url":"https://api.github.com/users/mvanholsteijn/events{/privacy}","received_events_url":"https://api.github.com/users/mvanholsteijn/received_events","type":"User","site_admin":false},"repo":{"id":107545593,"name":"kong","full_name":"mvanholsteijn/kong","owner":{"login":"mvanholsteijn","id":576619,"avatar_url":"https://avatars3.githubusercontent.com/u/576619?v=4","gravatar_id":"","url":"https://api.github.com/users/mvanholsteijn","html_url":"https://github.com/mvanholsteijn","followers_url":"https://api.github.com/users/mvanholsteijn/followers","following_url":"https://api.github.com/users/mvanholsteijn/following{/other_user}","gists_url":"https://api.github.com/users/mvanholsteijn/gists{/gist_id}","starred_url":"https://api.github.com/users/mvanholsteijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvanholsteijn/subscriptions","organizations_url":"https://api.github.com/users/mvanholsteijn/orgs","repos_url":"https://api.github.com/users/mvanholsteijn/repos","events_url":"https://api.github.com/users/mvanholsteijn/events{/privacy}","received_events_url":"https://api.github.com/users/mvanholsteijn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mvanholsteijn/kong","description":":monkey: The Microservice API Gateway ","fork":true,"url":"https://api.github.com/repos/mvanholsteijn/kong","forks_url":"https://api.github.com/repos/mvanholsteijn/kong/forks","keys_url":"https://api.github.com/repos/mvanholsteijn/kong/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mvanholsteijn/kong/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mvanholsteijn/kong/teams","hooks_url":"https://api.github.com/repos/mvanholsteijn/kong/hooks","issue_events_url":"https://api.github.com/repos/mvanholsteijn/kong/issues/events{/number}","events_url":"https://api.github.com/repos/mvanholsteijn/kong/events","assignees_url":"https://api.github.com/repos/mvanholsteijn/kong/assignees{/user}","branches_url":"https://api.github.com/repos/mvanholsteijn/kong/branches{/branch}","tags_url":"https://api.github.com/repos/mvanholsteijn/kong/tags","blobs_url":"https://api.github.com/repos/mvanholsteijn/kong/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mvanholsteijn/kong/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mvanholsteijn/kong/git/refs{/sha}","trees_url":"https://api.github.com/repos/mvanholsteijn/kong/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mvanholsteijn/kong/statuses/{sha}","languages_url":"https://api.github.com/repos/mvanholsteijn/kong/languages","stargazers_url":"https://api.github.com/repos/mvanholsteijn/kong/stargazers","contributors_url":"https://api.github.com/repos/mvanholsteijn/kong/contributors","subscribers_url":"https://api.github.com/repos/mvanholsteijn/kong/subscribers","subscription_url":"https://api.github.com/repos/mvanholsteijn/kong/subscription","commits_url":"https://api.github.com/repos/mvanholsteijn/kong/commits{/sha}","git_commits_url":"https://api.github.com/repos/mvanholsteijn/kong/git/commits{/sha}","comments_url":"https://api.github.com/repos/mvanholsteijn/kong/comments{/number}","issue_comment_url":"https://api.github.com/repos/mvanholsteijn/kong/issues/comments{/number}","contents_url":"https://api.github.com/repos/mvanholsteijn/kong/contents/{+path}","compare_url":"https://api.github.com/repos/mvanholsteijn/kong/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mvanholsteijn/kong/merges","archive_url":"https://api.github.com/repos/mvanholsteijn/kong/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mvanholsteijn/kong/downloads","issues_url":"https://api.github.com/repos/mvanholsteijn/kong/issues{/number}","pulls_url":"https://api.github.com/repos/mvanholsteijn/kong/pulls{/number}","milestones_url":"https://api.github.com/repos/mvanholsteijn/kong/milestones{/number}","notifications_url":"https://api.github.com/repos/mvanholsteijn/kong/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mvanholsteijn/kong/labels{/name}","releases_url":"https://api.github.com/repos/mvanholsteijn/kong/releases{/id}","deployments_url":"https://api.github.com/repos/mvanholsteijn/kong/deployments","created_at":"2017-10-19T12:50:23Z","updated_at":"2018-03-22T15:53:23Z","pushed_at":"2018-03-22T15:55:12Z","git_url":"git://github.com/mvanholsteijn/kong.git","ssh_url":"git@github.com:mvanholsteijn/kong.git","clone_url":"https://github.com/mvanholsteijn/kong.git","svn_url":"https://github.com/mvanholsteijn/kong","homepage":"https://konghq.com/install","size":7077,"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":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Kong:master","ref":"master","sha":"a8b7c873b2e328580a0cadc711730564fa24f0ab","user":{"login":"Kong","id":962416,"avatar_url":"https://avatars0.githubusercontent.com/u/962416?v=4","gravatar_id":"","url":"https://api.github.com/users/Kong","html_url":"https://github.com/Kong","followers_url":"https://api.github.com/users/Kong/followers","following_url":"https://api.github.com/users/Kong/following{/other_user}","gists_url":"https://api.github.com/users/Kong/gists{/gist_id}","starred_url":"https://api.github.com/users/Kong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kong/subscriptions","organizations_url":"https://api.github.com/users/Kong/orgs","repos_url":"https://api.github.com/users/Kong/repos","events_url":"https://api.github.com/users/Kong/events{/privacy}","received_events_url":"https://api.github.com/users/Kong/received_events","type":"Organization","site_admin":false},"repo":{"id":26783295,"name":"kong","full_name":"Kong/kong","owner":{"login":"Kong","id":962416,"avatar_url":"https://avatars0.githubusercontent.com/u/962416?v=4","gravatar_id":"","url":"https://api.github.com/users/Kong","html_url":"https://github.com/Kong","followers_url":"https://api.github.com/users/Kong/followers","following_url":"https://api.github.com/users/Kong/following{/other_user}","gists_url":"https://api.github.com/users/Kong/gists{/gist_id}","starred_url":"https://api.github.com/users/Kong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kong/subscriptions","organizations_url":"https://api.github.com/users/Kong/orgs","repos_url":"https://api.github.com/users/Kong/repos","events_url":"https://api.github.com/users/Kong/events{/privacy}","received_events_url":"https://api.github.com/users/Kong/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kong/kong","description":":monkey: The Microservice API Gateway","fork":false,"url":"https://api.github.com/repos/Kong/kong","forks_url":"https://api.github.com/repos/Kong/kong/forks","keys_url":"https://api.github.com/repos/Kong/kong/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kong/kong/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kong/kong/teams","hooks_url":"https://api.github.com/repos/Kong/kong/hooks","issue_events_url":"https://api.github.com/repos/Kong/kong/issues/events{/number}","events_url":"https://api.github.com/repos/Kong/kong/events","assignees_url":"https://api.github.com/repos/Kong/kong/assignees{/user}","branches_url":"https://api.github.com/repos/Kong/kong/branches{/branch}","tags_url":"https://api.github.com/repos/Kong/kong/tags","blobs_url":"https://api.github.com/repos/Kong/kong/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kong/kong/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kong/kong/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kong/kong/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kong/kong/statuses/{sha}","languages_url":"https://api.github.com/repos/Kong/kong/languages","stargazers_url":"https://api.github.com/repos/Kong/kong/stargazers","contributors_url":"https://api.github.com/repos/Kong/kong/contributors","subscribers_url":"https://api.github.com/repos/Kong/kong/subscribers","subscription_url":"https://api.github.com/repos/Kong/kong/subscription","commits_url":"https://api.github.com/repos/Kong/kong/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kong/kong/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kong/kong/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kong/kong/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kong/kong/contents/{+path}","compare_url":"https://api.github.com/repos/Kong/kong/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kong/kong/merges","archive_url":"https://api.github.com/repos/Kong/kong/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kong/kong/downloads","issues_url":"https://api.github.com/repos/Kong/kong/issues{/number}","pulls_url":"https://api.github.com/repos/Kong/kong/pulls{/number}","milestones_url":"https://api.github.com/repos/Kong/kong/milestones{/number}","notifications_url":"https://api.github.com/repos/Kong/kong/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kong/kong/labels{/name}","releases_url":"https://api.github.com/repos/Kong/kong/releases{/id}","deployments_url":"https://api.github.com/repos/Kong/kong/deployments","created_at":"2014-11-17T23:56:08Z","updated_at":"2018-03-22T14:58:40Z","pushed_at":"2018-03-22T16:01:30Z","git_url":"git://github.com/Kong/kong.git","ssh_url":"git@github.com:Kong/kong.git","clone_url":"https://github.com/Kong/kong.git","svn_url":"https://github.com/Kong/kong","homepage":"https://konghq.com/install","size":8266,"stargazers_count":14931,"watchers_count":14931,"language":"Lua","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1717,"mirror_url":null,"archived":false,"open_issues_count":280,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1717,"open_issues":280,"watchers":14931,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kong/kong/pulls/3331"},"html":{"href":"https://github.com/Kong/kong/pull/3331"},"issue":{"href":"https://api.github.com/repos/Kong/kong/issues/3331"},"comments":{"href":"https://api.github.com/repos/Kong/kong/issues/3331/comments"},"review_comments":{"href":"https://api.github.com/repos/Kong/kong/pulls/3331/comments"},"review_comment":{"href":"https://api.github.com/repos/Kong/kong/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kong/kong/pulls/3331/commits"},"statuses":{"href":"https://api.github.com/repos/Kong/kong/statuses/3017711c2689360871956dc4a8fd5465417b51df"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":155,"deletions":1,"changed_files":7}}
{"actor":{"display_login":"mvanholsteijn"}}