{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6920","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6920/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6920/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6920/events","html_url":"https://github.com/spring-projects/spring-boot/issues/6920","id":177632803,"number":6920,"title":"Includes WebSecurityConfigurer in auto configuration for tests with @WebMvcTest","user":{"login":"marcoasp","id":7240911,"avatar_url":"https://avatars.githubusercontent.com/u/7240911?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoasp","html_url":"https://github.com/marcoasp","followers_url":"https://api.github.com/users/marcoasp/followers","following_url":"https://api.github.com/users/marcoasp/following{/other_user}","gists_url":"https://api.github.com/users/marcoasp/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoasp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoasp/subscriptions","organizations_url":"https://api.github.com/users/marcoasp/orgs","repos_url":"https://api.github.com/users/marcoasp/repos","events_url":"https://api.github.com/users/marcoasp/events{/privacy}","received_events_url":"https://api.github.com/users/marcoasp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-18T06:21:37Z","updated_at":"2016-09-18T06:21:37Z","closed_at":null,"body":"Enhancement\r\n\r\nIt should be a good idead to include the WebSecurityConfigurer in the auto configuration scanning for @WebMvcTest tests, since the security enabled by default in this case, configures the default authentication. It can make some confusion when you already have a WebSecurityConfigurer for your web layer as it is not picked unless used with another annotation @ContextConfiguration in which you may include all your other configuration classes, for example\r\n\r\n> @RunWith(SpringRunner.class)\r\n> @WebMvcTest\r\n> @ContextConfiguration(classes={Application.class, MvcConfig.class, SecurityConfig.class})\r\n> public class MyTest {\r\n> }"}}
{"actor":{"display_login":"marcoasp"}}