{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/rapid7/guardian/pulls/7","id":48644943,"html_url":"https://github.com/rapid7/guardian/pull/7","diff_url":"https://github.com/rapid7/guardian/pull/7.diff","patch_url":"https://github.com/rapid7/guardian/pull/7.patch","issue_url":"https://api.github.com/repos/rapid7/guardian/issues/7","number":7,"state":"open","locked":false,"title":"Add default route option for each SAML provider","user":{"login":"bturner-r7","id":2836432,"avatar_url":"https://avatars.githubusercontent.com/u/2836432?v=3","gravatar_id":"","url":"https://api.github.com/users/bturner-r7","html_url":"https://github.com/bturner-r7","followers_url":"https://api.github.com/users/bturner-r7/followers","following_url":"https://api.github.com/users/bturner-r7/following{/other_user}","gists_url":"https://api.github.com/users/bturner-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/bturner-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bturner-r7/subscriptions","organizations_url":"https://api.github.com/users/bturner-r7/orgs","repos_url":"https://api.github.com/users/bturner-r7/repos","events_url":"https://api.github.com/users/bturner-r7/events{/privacy}","received_events_url":"https://api.github.com/users/bturner-r7/received_events","type":"User","site_admin":false},"body":"By default, if the user goes directly to the SAML callback URL (without\r\nvisiting the app first), they are redirected to '/' after\r\nauthentication.\r\n\r\nThis allows setting a default route to redirect to if no return path is\r\nset.  You can configure this in the authn.json config file:\r\n\r\n```json\r\n{\r\n  \"authn\": {\r\n    \"providers\": {\r\n      \"myprovider: {\r\n        \"name\": \"My Provider\",\r\n        \"strategy\": \"SAML\",\r\n        \"defaultRoute\": \"/uadmin/\",\r\n        \"params\": {}\r\n      }\r\n    }\r\n  }\r\n}\r\n```","created_at":"2015-10-24T01:00:23Z","updated_at":"2015-10-24T01:00:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/guardian/pulls/7/commits","review_comments_url":"https://api.github.com/repos/rapid7/guardian/pulls/7/comments","review_comment_url":"https://api.github.com/repos/rapid7/guardian/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapid7/guardian/issues/7/comments","statuses_url":"https://api.github.com/repos/rapid7/guardian/statuses/bb59f64ee4e7dc5c447273a3ca323d94713ff276","head":{"label":"rapid7:saml-default-route","ref":"saml-default-route","sha":"bb59f64ee4e7dc5c447273a3ca323d94713ff276","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":29597587,"name":"guardian","full_name":"rapid7/guardian","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/guardian","description":"A lightweight authentication proxy for HTTP services","fork":false,"url":"https://api.github.com/repos/rapid7/guardian","forks_url":"https://api.github.com/repos/rapid7/guardian/forks","keys_url":"https://api.github.com/repos/rapid7/guardian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/guardian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/guardian/teams","hooks_url":"https://api.github.com/repos/rapid7/guardian/hooks","issue_events_url":"https://api.github.com/repos/rapid7/guardian/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/guardian/events","assignees_url":"https://api.github.com/repos/rapid7/guardian/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/guardian/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/guardian/tags","blobs_url":"https://api.github.com/repos/rapid7/guardian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/guardian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/guardian/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/guardian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/guardian/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/guardian/languages","stargazers_url":"https://api.github.com/repos/rapid7/guardian/stargazers","contributors_url":"https://api.github.com/repos/rapid7/guardian/contributors","subscribers_url":"https://api.github.com/repos/rapid7/guardian/subscribers","subscription_url":"https://api.github.com/repos/rapid7/guardian/subscription","commits_url":"https://api.github.com/repos/rapid7/guardian/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/guardian/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/guardian/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/guardian/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/guardian/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/guardian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/guardian/merges","archive_url":"https://api.github.com/repos/rapid7/guardian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/guardian/downloads","issues_url":"https://api.github.com/repos/rapid7/guardian/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/guardian/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/guardian/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/guardian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/guardian/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/guardian/releases{/id}","created_at":"2015-01-21T16:00:37Z","updated_at":"2015-10-06T12:37:24Z","pushed_at":"2015-10-24T01:00:04Z","git_url":"git://github.com/rapid7/guardian.git","ssh_url":"git@github.com:rapid7/guardian.git","clone_url":"https://github.com/rapid7/guardian.git","svn_url":"https://github.com/rapid7/guardian","homepage":"","size":1223,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"43965d382bc26746b80d1b216d9aefc635cfff9a","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":29597587,"name":"guardian","full_name":"rapid7/guardian","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/guardian","description":"A lightweight authentication proxy for HTTP services","fork":false,"url":"https://api.github.com/repos/rapid7/guardian","forks_url":"https://api.github.com/repos/rapid7/guardian/forks","keys_url":"https://api.github.com/repos/rapid7/guardian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/guardian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/guardian/teams","hooks_url":"https://api.github.com/repos/rapid7/guardian/hooks","issue_events_url":"https://api.github.com/repos/rapid7/guardian/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/guardian/events","assignees_url":"https://api.github.com/repos/rapid7/guardian/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/guardian/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/guardian/tags","blobs_url":"https://api.github.com/repos/rapid7/guardian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/guardian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/guardian/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/guardian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/guardian/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/guardian/languages","stargazers_url":"https://api.github.com/repos/rapid7/guardian/stargazers","contributors_url":"https://api.github.com/repos/rapid7/guardian/contributors","subscribers_url":"https://api.github.com/repos/rapid7/guardian/subscribers","subscription_url":"https://api.github.com/repos/rapid7/guardian/subscription","commits_url":"https://api.github.com/repos/rapid7/guardian/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/guardian/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/guardian/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/guardian/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/guardian/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/guardian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/guardian/merges","archive_url":"https://api.github.com/repos/rapid7/guardian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/guardian/downloads","issues_url":"https://api.github.com/repos/rapid7/guardian/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/guardian/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/guardian/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/guardian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/guardian/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/guardian/releases{/id}","created_at":"2015-01-21T16:00:37Z","updated_at":"2015-10-06T12:37:24Z","pushed_at":"2015-10-24T01:00:04Z","git_url":"git://github.com/rapid7/guardian.git","ssh_url":"git@github.com:rapid7/guardian.git","clone_url":"https://github.com/rapid7/guardian.git","svn_url":"https://github.com/rapid7/guardian","homepage":"","size":1223,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/guardian/pulls/7"},"html":{"href":"https://github.com/rapid7/guardian/pull/7"},"issue":{"href":"https://api.github.com/repos/rapid7/guardian/issues/7"},"comments":{"href":"https://api.github.com/repos/rapid7/guardian/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/guardian/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/guardian/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapid7/guardian/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/guardian/statuses/bb59f64ee4e7dc5c447273a3ca323d94713ff276"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":2}}