{"action":"opened","number":37,"pull_request":{"url":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls/37","id":193300917,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMzAwOTE3","html_url":"https://github.com/hmcts/feature-toggle-api/pull/37","diff_url":"https://github.com/hmcts/feature-toggle-api/pull/37.diff","patch_url":"https://github.com/hmcts/feature-toggle-api/pull/37.patch","issue_url":"https://api.github.com/repos/hmcts/feature-toggle-api/issues/37","number":37,"state":"open","locked":false,"title":"Cleanup security config","user":{"login":"doncem","id":1420191,"node_id":"MDQ6VXNlcjE0MjAxOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1420191?v=4","gravatar_id":"","url":"https://api.github.com/users/doncem","html_url":"https://github.com/doncem","followers_url":"https://api.github.com/users/doncem/followers","following_url":"https://api.github.com/users/doncem/following{/other_user}","gists_url":"https://api.github.com/users/doncem/gists{/gist_id}","starred_url":"https://api.github.com/users/doncem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doncem/subscriptions","organizations_url":"https://api.github.com/users/doncem/orgs","repos_url":"https://api.github.com/users/doncem/repos","events_url":"https://api.github.com/users/doncem/events{/privacy}","received_events_url":"https://api.github.com/users/doncem/received_events","type":"User","site_admin":false},"body":"### Change description ###\r\n\r\nSecurity configuration was increasing constantly and now after all setup is complete, it is clear what to move around, separate to external classes.\r\n\r\n- Exception handler's entry point is individual class\r\n- Login success handler is individual class\r\n- Following new packaging - moving Roles to it's own utility class\r\n- Creating `UseDetailConfigurer` to keep user creation out of configuration scope\r\n\r\n**Does this PR introduce a breaking change?** (check one with \"x\")\r\n\r\n```\r\n[ ] Yes\r\n[x] No\r\n```\r\n","created_at":"2018-06-07T12:16:38Z","updated_at":"2018-06-07T12:16:38Z","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/hmcts/feature-toggle-api/pulls/37/commits","review_comments_url":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls/37/comments","review_comment_url":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/feature-toggle-api/issues/37/comments","statuses_url":"https://api.github.com/repos/hmcts/feature-toggle-api/statuses/124aa787d22b577f394b2e7d66b3dd76b94b874f","head":{"label":"hmcts:cleanup/security-config","ref":"cleanup/security-config","sha":"124aa787d22b577f394b2e7d66b3dd76b94b874f","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":132114459,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIxMTQ0NTk=","name":"feature-toggle-api","full_name":"hmcts/feature-toggle-api","owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmcts/feature-toggle-api","description":"API for feature toggling management and provisioning","fork":false,"url":"https://api.github.com/repos/hmcts/feature-toggle-api","forks_url":"https://api.github.com/repos/hmcts/feature-toggle-api/forks","keys_url":"https://api.github.com/repos/hmcts/feature-toggle-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/feature-toggle-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/feature-toggle-api/teams","hooks_url":"https://api.github.com/repos/hmcts/feature-toggle-api/hooks","issue_events_url":"https://api.github.com/repos/hmcts/feature-toggle-api/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/feature-toggle-api/events","assignees_url":"https://api.github.com/repos/hmcts/feature-toggle-api/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/feature-toggle-api/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/feature-toggle-api/tags","blobs_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/feature-toggle-api/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/feature-toggle-api/languages","stargazers_url":"https://api.github.com/repos/hmcts/feature-toggle-api/stargazers","contributors_url":"https://api.github.com/repos/hmcts/feature-toggle-api/contributors","subscribers_url":"https://api.github.com/repos/hmcts/feature-toggle-api/subscribers","subscription_url":"https://api.github.com/repos/hmcts/feature-toggle-api/subscription","commits_url":"https://api.github.com/repos/hmcts/feature-toggle-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/feature-toggle-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/feature-toggle-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/feature-toggle-api/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/feature-toggle-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/feature-toggle-api/merges","archive_url":"https://api.github.com/repos/hmcts/feature-toggle-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/feature-toggle-api/downloads","issues_url":"https://api.github.com/repos/hmcts/feature-toggle-api/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/feature-toggle-api/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/feature-toggle-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/feature-toggle-api/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/feature-toggle-api/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/feature-toggle-api/deployments","created_at":"2018-05-04T08:50:02Z","updated_at":"2018-06-07T10:01:16Z","pushed_at":"2018-06-07T12:10:49Z","git_url":"git://github.com/hmcts/feature-toggle-api.git","ssh_url":"git@github.com:hmcts/feature-toggle-api.git","clone_url":"https://github.com/hmcts/feature-toggle-api.git","svn_url":"https://github.com/hmcts/feature-toggle-api","homepage":null,"size":1675,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"8c3b040840429acb19fd03e86e679eb2b98bcdc2","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":132114459,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIxMTQ0NTk=","name":"feature-toggle-api","full_name":"hmcts/feature-toggle-api","owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmcts/feature-toggle-api","description":"API for feature toggling management and provisioning","fork":false,"url":"https://api.github.com/repos/hmcts/feature-toggle-api","forks_url":"https://api.github.com/repos/hmcts/feature-toggle-api/forks","keys_url":"https://api.github.com/repos/hmcts/feature-toggle-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/feature-toggle-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/feature-toggle-api/teams","hooks_url":"https://api.github.com/repos/hmcts/feature-toggle-api/hooks","issue_events_url":"https://api.github.com/repos/hmcts/feature-toggle-api/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/feature-toggle-api/events","assignees_url":"https://api.github.com/repos/hmcts/feature-toggle-api/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/feature-toggle-api/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/feature-toggle-api/tags","blobs_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/feature-toggle-api/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/feature-toggle-api/languages","stargazers_url":"https://api.github.com/repos/hmcts/feature-toggle-api/stargazers","contributors_url":"https://api.github.com/repos/hmcts/feature-toggle-api/contributors","subscribers_url":"https://api.github.com/repos/hmcts/feature-toggle-api/subscribers","subscription_url":"https://api.github.com/repos/hmcts/feature-toggle-api/subscription","commits_url":"https://api.github.com/repos/hmcts/feature-toggle-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/feature-toggle-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/feature-toggle-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/feature-toggle-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/feature-toggle-api/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/feature-toggle-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/feature-toggle-api/merges","archive_url":"https://api.github.com/repos/hmcts/feature-toggle-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/feature-toggle-api/downloads","issues_url":"https://api.github.com/repos/hmcts/feature-toggle-api/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/feature-toggle-api/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/feature-toggle-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/feature-toggle-api/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/feature-toggle-api/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/feature-toggle-api/deployments","created_at":"2018-05-04T08:50:02Z","updated_at":"2018-06-07T10:01:16Z","pushed_at":"2018-06-07T12:10:49Z","git_url":"git://github.com/hmcts/feature-toggle-api.git","ssh_url":"git@github.com:hmcts/feature-toggle-api.git","clone_url":"https://github.com/hmcts/feature-toggle-api.git","svn_url":"https://github.com/hmcts/feature-toggle-api","homepage":null,"size":1675,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls/37"},"html":{"href":"https://github.com/hmcts/feature-toggle-api/pull/37"},"issue":{"href":"https://api.github.com/repos/hmcts/feature-toggle-api/issues/37"},"comments":{"href":"https://api.github.com/repos/hmcts/feature-toggle-api/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/feature-toggle-api/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/feature-toggle-api/statuses/124aa787d22b577f394b2e7d66b3dd76b94b874f"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":9,"additions":123,"deletions":81,"changed_files":5}}
{"actor":{"display_login":"doncem"}}