{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/12096","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/12096/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/12096/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/12096/events","html_url":"https://github.com/spring-projects/spring-boot/issues/12096","id":297955776,"number":12096,"title":"Security configuration is ignored since 2.0.0.M4","user":{"login":"black2342","id":36554027,"avatar_url":"https://avatars1.githubusercontent.com/u/36554027?v=4","gravatar_id":"","url":"https://api.github.com/users/black2342","html_url":"https://github.com/black2342","followers_url":"https://api.github.com/users/black2342/followers","following_url":"https://api.github.com/users/black2342/following{/other_user}","gists_url":"https://api.github.com/users/black2342/gists{/gist_id}","starred_url":"https://api.github.com/users/black2342/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/black2342/subscriptions","organizations_url":"https://api.github.com/users/black2342/orgs","repos_url":"https://api.github.com/users/black2342/repos","events_url":"https://api.github.com/users/black2342/events{/privacy}","received_events_url":"https://api.github.com/users/black2342/received_events","type":"User","site_admin":false},"labels":[{"id":297028791,"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/status:%20feedback-provided","name":"status: feedback-provided","color":"fef2c0","default":false},{"id":293438798,"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/status:%20waiting-for-triage","name":"status: waiting-for-triage","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-02-16T23:59:24Z","updated_at":"2018-02-19T13:15:42Z","closed_at":"2018-02-19T13:15:42Z","author_association":"NONE","body":"Since 2.0.0.M4 my `SecurityConfiguration` implementation that extends `WebSecurityConfigurerAdapter` is completely ignored. As a result my application is now unable to start, because there is no `AuthenticationProvider`. The information in [this blog post](https://spring.io/blog/2017/09/15/security-changes-in-spring-boot-2-0-m4) aren't very helpful. I miss additional information (in form of a compelte example) about how to setup a security configuration since 2.0.0.M4 including `AuthorizationManager`, `UserDetailsService` and `PasswordEncoder`. With 2.0.0.M3 everything works fine.\r\n\r\n    @Configuration\r\n    public class SecurityConfiguration extends WebSecurityConfigurerAdapter {\r\n\r\n        @Autowired\r\n        private UserDetailsService userDetailsService;\r\n\r\n        @Override\r\n        protected void configure(final HttpSecurity httpSecurity) throws Exception {\r\n            httpSecurity\r\n                    .authorizeRequests().antMatchers(\"/\", \"/sign-in\").permitAll().and()\r\n                    .authorizeRequests().anyRequest().authenticated().and()\r\n                    .logout().logoutUrl(\"/sign-out\").logoutSuccessUrl(\"/\");\r\n        }\r\n\r\n        @Override\r\n        public void configure(final AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception {\r\n            authenticationManagerBuilder\r\n                    .userDetailsService(this.userDetailsService)\r\n                    .passwordEncoder(this.passwordEncoder());\r\n        }\r\n\r\n        @Bean\r\n        public PasswordEncoder passwordEncoder() {\r\n            return new BCryptPasswordEncoder();\r\n        }\r\n    }"}}
{"actor":{"display_login":"wilkinsona"}}