{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7106","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7106/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7106/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7106/events","html_url":"https://github.com/spring-projects/spring-boot/issues/7106","id":181216708,"number":7106,"title":"Remove duplication from IgnoredPathsWebSecurityConfigurerAdapter","user":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/69","html_url":"https://github.com/spring-projects/spring-boot/milestones/1.5.0%20M1","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/69/labels","id":1786365,"number":69,"title":"1.5.0 M1","description":"","creator":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":14,"state":"open","created_at":"2016-05-25T01:02:30Z","updated_at":"2016-10-05T17:27:28Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-05T17:27:28Z","updated_at":"2016-10-05T17:34:11Z","closed_at":null,"body":"`ManagementWebSecurityAutoConfiguration.IgnoredPathsWebSecurityConfigurerAdapter` duplicates a lot from `SpringBootWebSecurityConfiguration.IgnoredPathsWebSecurityConfigurerAdapter` and includes the following comment:\r\n\r\n```java\r\n// The ignores are not cumulative, so to prevent overwriting the defaults\r\n// we add them back.\r\n```\r\n\r\nThe Javadoc for `WebSecurity.ignoring()` however states:\r\n>  Multiple invocations of ignoring() are also additive\r\n\r\nSo perhaps we can simplify things.\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/251743760","html_url":"https://github.com/spring-projects/spring-boot/issues/7106#issuecomment-251743760","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7106","id":251743760,"user":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T17:34:11Z","updated_at":"2016-10-05T17:34:11Z","body":"Seems like the Javadoc on `WebSecurity.ignoring()` might be correct:\r\n\r\n```java\r\n@Configuration\r\n@Order(SecurityProperties.IGNORED_ORDER + 2)\r\npublic class IgnoreEnvSecurity implements WebSecurityConfigurer<WebSecurity> {\r\n\r\n\t@Override\r\n\tpublic void configure(WebSecurity builder) throws Exception {\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void init(WebSecurity builder) throws Exception {\r\n\t\tbuilder.ignoring().antMatchers(\"/env/**\");\r\n\t}\r\n\r\n}\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"philwebb"}}