{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/ravisuhag/jolly/pulls/9","id":90433441,"html_url":"https://github.com/ravisuhag/jolly/pull/9","diff_url":"https://github.com/ravisuhag/jolly/pull/9.diff","patch_url":"https://github.com/ravisuhag/jolly/pull/9.patch","issue_url":"https://api.github.com/repos/ravisuhag/jolly/issues/9","number":9,"state":"open","locked":false,"title":"reduce verbosity around `try` mode","user":{"login":"turtleDev","id":12575843,"avatar_url":"https://avatars.githubusercontent.com/u/12575843?v=3","gravatar_id":"","url":"https://api.github.com/users/turtleDev","html_url":"https://github.com/turtleDev","followers_url":"https://api.github.com/users/turtleDev/followers","following_url":"https://api.github.com/users/turtleDev/following{/other_user}","gists_url":"https://api.github.com/users/turtleDev/gists{/gist_id}","starred_url":"https://api.github.com/users/turtleDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turtleDev/subscriptions","organizations_url":"https://api.github.com/users/turtleDev/orgs","repos_url":"https://api.github.com/users/turtleDev/repos","events_url":"https://api.github.com/users/turtleDev/events{/privacy}","received_events_url":"https://api.github.com/users/turtleDev/received_events","type":"User","site_admin":false},"body":"# The Problem\r\nevery time we create a route that uses the `try` mode, we'd also need to tell `hapi-auth-cookie` that we don't want it to redirect the user to the login page. This had to been done for every route that used the `try` mode  \r\n\r\n# The Solution\r\n`hapi-auth-cookie` features a configuration flag called `redirectOnTry` which basically disables redirection on all routes that employ the `try` mode. If any route wants redirection with `try` mode, it can ask for it by using `route.config.plugins`. To demonstrate:\r\n\r\n```js\r\n\r\nserver.route({\r\n    path: '/',\r\n    method: 'GET',\r\n    plugins: {\r\n        'hapi-auth-cookie': {\r\n            redirectOnTry: true\r\n        }\r\n    },\r\n    auth: 'standard',\r\n    handler: function(request, reply) {\r\n        reply().code(200);\r\n    }\r\n});","created_at":"2016-10-21T19:48:32Z","updated_at":"2016-10-21T19:48:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ravisuhag/jolly/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ravisuhag/jolly/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ravisuhag/jolly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ravisuhag/jolly/issues/9/comments","statuses_url":"https://api.github.com/repos/ravisuhag/jolly/statuses/15df4680a8051b807b4cb28ad2dfbddb81d1f865","head":{"label":"turtleDev:reduce-auth-verbosity","ref":"reduce-auth-verbosity","sha":"15df4680a8051b807b4cb28ad2dfbddb81d1f865","user":{"login":"turtleDev","id":12575843,"avatar_url":"https://avatars.githubusercontent.com/u/12575843?v=3","gravatar_id":"","url":"https://api.github.com/users/turtleDev","html_url":"https://github.com/turtleDev","followers_url":"https://api.github.com/users/turtleDev/followers","following_url":"https://api.github.com/users/turtleDev/following{/other_user}","gists_url":"https://api.github.com/users/turtleDev/gists{/gist_id}","starred_url":"https://api.github.com/users/turtleDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turtleDev/subscriptions","organizations_url":"https://api.github.com/users/turtleDev/orgs","repos_url":"https://api.github.com/users/turtleDev/repos","events_url":"https://api.github.com/users/turtleDev/events{/privacy}","received_events_url":"https://api.github.com/users/turtleDev/received_events","type":"User","site_admin":false},"repo":{"id":64111892,"name":"jolly","full_name":"turtleDev/jolly","owner":{"login":"turtleDev","id":12575843,"avatar_url":"https://avatars.githubusercontent.com/u/12575843?v=3","gravatar_id":"","url":"https://api.github.com/users/turtleDev","html_url":"https://github.com/turtleDev","followers_url":"https://api.github.com/users/turtleDev/followers","following_url":"https://api.github.com/users/turtleDev/following{/other_user}","gists_url":"https://api.github.com/users/turtleDev/gists{/gist_id}","starred_url":"https://api.github.com/users/turtleDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turtleDev/subscriptions","organizations_url":"https://api.github.com/users/turtleDev/orgs","repos_url":"https://api.github.com/users/turtleDev/repos","events_url":"https://api.github.com/users/turtleDev/events{/privacy}","received_events_url":"https://api.github.com/users/turtleDev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/turtleDev/jolly","description":"Production ready boilerplate for hapi.js","fork":true,"url":"https://api.github.com/repos/turtleDev/jolly","forks_url":"https://api.github.com/repos/turtleDev/jolly/forks","keys_url":"https://api.github.com/repos/turtleDev/jolly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turtleDev/jolly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turtleDev/jolly/teams","hooks_url":"https://api.github.com/repos/turtleDev/jolly/hooks","issue_events_url":"https://api.github.com/repos/turtleDev/jolly/issues/events{/number}","events_url":"https://api.github.com/repos/turtleDev/jolly/events","assignees_url":"https://api.github.com/repos/turtleDev/jolly/assignees{/user}","branches_url":"https://api.github.com/repos/turtleDev/jolly/branches{/branch}","tags_url":"https://api.github.com/repos/turtleDev/jolly/tags","blobs_url":"https://api.github.com/repos/turtleDev/jolly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turtleDev/jolly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turtleDev/jolly/git/refs{/sha}","trees_url":"https://api.github.com/repos/turtleDev/jolly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turtleDev/jolly/statuses/{sha}","languages_url":"https://api.github.com/repos/turtleDev/jolly/languages","stargazers_url":"https://api.github.com/repos/turtleDev/jolly/stargazers","contributors_url":"https://api.github.com/repos/turtleDev/jolly/contributors","subscribers_url":"https://api.github.com/repos/turtleDev/jolly/subscribers","subscription_url":"https://api.github.com/repos/turtleDev/jolly/subscription","commits_url":"https://api.github.com/repos/turtleDev/jolly/commits{/sha}","git_commits_url":"https://api.github.com/repos/turtleDev/jolly/git/commits{/sha}","comments_url":"https://api.github.com/repos/turtleDev/jolly/comments{/number}","issue_comment_url":"https://api.github.com/repos/turtleDev/jolly/issues/comments{/number}","contents_url":"https://api.github.com/repos/turtleDev/jolly/contents/{+path}","compare_url":"https://api.github.com/repos/turtleDev/jolly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turtleDev/jolly/merges","archive_url":"https://api.github.com/repos/turtleDev/jolly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turtleDev/jolly/downloads","issues_url":"https://api.github.com/repos/turtleDev/jolly/issues{/number}","pulls_url":"https://api.github.com/repos/turtleDev/jolly/pulls{/number}","milestones_url":"https://api.github.com/repos/turtleDev/jolly/milestones{/number}","notifications_url":"https://api.github.com/repos/turtleDev/jolly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turtleDev/jolly/labels{/name}","releases_url":"https://api.github.com/repos/turtleDev/jolly/releases{/id}","deployments_url":"https://api.github.com/repos/turtleDev/jolly/deployments","created_at":"2016-07-25T07:10:00Z","updated_at":"2016-07-25T07:10:00Z","pushed_at":"2016-10-21T13:37:04Z","git_url":"git://github.com/turtleDev/jolly.git","ssh_url":"git@github.com:turtleDev/jolly.git","clone_url":"https://github.com/turtleDev/jolly.git","svn_url":"https://github.com/turtleDev/jolly","homepage":"","size":1033,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ravisuhag:master","ref":"master","sha":"8368f897f4ed6cfd29dee5a25cef6889b1283b2c","user":{"login":"ravisuhag","id":2075279,"avatar_url":"https://avatars.githubusercontent.com/u/2075279?v=3","gravatar_id":"","url":"https://api.github.com/users/ravisuhag","html_url":"https://github.com/ravisuhag","followers_url":"https://api.github.com/users/ravisuhag/followers","following_url":"https://api.github.com/users/ravisuhag/following{/other_user}","gists_url":"https://api.github.com/users/ravisuhag/gists{/gist_id}","starred_url":"https://api.github.com/users/ravisuhag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravisuhag/subscriptions","organizations_url":"https://api.github.com/users/ravisuhag/orgs","repos_url":"https://api.github.com/users/ravisuhag/repos","events_url":"https://api.github.com/users/ravisuhag/events{/privacy}","received_events_url":"https://api.github.com/users/ravisuhag/received_events","type":"User","site_admin":false},"repo":{"id":41065697,"name":"jolly","full_name":"ravisuhag/jolly","owner":{"login":"ravisuhag","id":2075279,"avatar_url":"https://avatars.githubusercontent.com/u/2075279?v=3","gravatar_id":"","url":"https://api.github.com/users/ravisuhag","html_url":"https://github.com/ravisuhag","followers_url":"https://api.github.com/users/ravisuhag/followers","following_url":"https://api.github.com/users/ravisuhag/following{/other_user}","gists_url":"https://api.github.com/users/ravisuhag/gists{/gist_id}","starred_url":"https://api.github.com/users/ravisuhag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravisuhag/subscriptions","organizations_url":"https://api.github.com/users/ravisuhag/orgs","repos_url":"https://api.github.com/users/ravisuhag/repos","events_url":"https://api.github.com/users/ravisuhag/events{/privacy}","received_events_url":"https://api.github.com/users/ravisuhag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ravisuhag/jolly","description":"Production ready boilerplate for hapi.js","fork":false,"url":"https://api.github.com/repos/ravisuhag/jolly","forks_url":"https://api.github.com/repos/ravisuhag/jolly/forks","keys_url":"https://api.github.com/repos/ravisuhag/jolly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ravisuhag/jolly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ravisuhag/jolly/teams","hooks_url":"https://api.github.com/repos/ravisuhag/jolly/hooks","issue_events_url":"https://api.github.com/repos/ravisuhag/jolly/issues/events{/number}","events_url":"https://api.github.com/repos/ravisuhag/jolly/events","assignees_url":"https://api.github.com/repos/ravisuhag/jolly/assignees{/user}","branches_url":"https://api.github.com/repos/ravisuhag/jolly/branches{/branch}","tags_url":"https://api.github.com/repos/ravisuhag/jolly/tags","blobs_url":"https://api.github.com/repos/ravisuhag/jolly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ravisuhag/jolly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ravisuhag/jolly/git/refs{/sha}","trees_url":"https://api.github.com/repos/ravisuhag/jolly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ravisuhag/jolly/statuses/{sha}","languages_url":"https://api.github.com/repos/ravisuhag/jolly/languages","stargazers_url":"https://api.github.com/repos/ravisuhag/jolly/stargazers","contributors_url":"https://api.github.com/repos/ravisuhag/jolly/contributors","subscribers_url":"https://api.github.com/repos/ravisuhag/jolly/subscribers","subscription_url":"https://api.github.com/repos/ravisuhag/jolly/subscription","commits_url":"https://api.github.com/repos/ravisuhag/jolly/commits{/sha}","git_commits_url":"https://api.github.com/repos/ravisuhag/jolly/git/commits{/sha}","comments_url":"https://api.github.com/repos/ravisuhag/jolly/comments{/number}","issue_comment_url":"https://api.github.com/repos/ravisuhag/jolly/issues/comments{/number}","contents_url":"https://api.github.com/repos/ravisuhag/jolly/contents/{+path}","compare_url":"https://api.github.com/repos/ravisuhag/jolly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ravisuhag/jolly/merges","archive_url":"https://api.github.com/repos/ravisuhag/jolly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ravisuhag/jolly/downloads","issues_url":"https://api.github.com/repos/ravisuhag/jolly/issues{/number}","pulls_url":"https://api.github.com/repos/ravisuhag/jolly/pulls{/number}","milestones_url":"https://api.github.com/repos/ravisuhag/jolly/milestones{/number}","notifications_url":"https://api.github.com/repos/ravisuhag/jolly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ravisuhag/jolly/labels{/name}","releases_url":"https://api.github.com/repos/ravisuhag/jolly/releases{/id}","deployments_url":"https://api.github.com/repos/ravisuhag/jolly/deployments","created_at":"2015-08-20T00:00:31Z","updated_at":"2016-10-19T13:52:20Z","pushed_at":"2016-10-10T15:42:07Z","git_url":"git://github.com/ravisuhag/jolly.git","ssh_url":"git@github.com:ravisuhag/jolly.git","clone_url":"https://github.com/ravisuhag/jolly.git","svn_url":"https://github.com/ravisuhag/jolly","homepage":"","size":1032,"stargazers_count":37,"watchers_count":37,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ravisuhag/jolly/pulls/9"},"html":{"href":"https://github.com/ravisuhag/jolly/pull/9"},"issue":{"href":"https://api.github.com/repos/ravisuhag/jolly/issues/9"},"comments":{"href":"https://api.github.com/repos/ravisuhag/jolly/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ravisuhag/jolly/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ravisuhag/jolly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ravisuhag/jolly/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ravisuhag/jolly/statuses/15df4680a8051b807b4cb28ad2dfbddb81d1f865"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":52,"changed_files":7}}
{"actor":{"display_login":"turtleDev"}}