temporarily removed authentication

This commit is contained in:
Main
2016-02-17 00:14:16 +03:00
parent 43916e10aa
commit f14fd73f63

View File

@@ -49,13 +49,6 @@ public class AuthConfiguration extends WebSecurityConfigurerAdapter {
http.csrf().disable()
.authorizeRequests()
.antMatchers("/**").permitAll()
/* .antMatchers("/health").permitAll()
.antMatchers("/swagger-ui.html").permitAll()
.antMatchers("/v2/api-docs").permitAll()
.antMatchers("*//**.js").permitAll()
.antMatchers("*//**.css").permitAll()
.antMatchers(HttpMethod.POST, "/customers").permitAll()
.antMatchers(HttpMethod.POST, "/login").permitAll()*/
.anyRequest().authenticated().and()
.addFilterBefore(new StatelessAuthenticationFilter(tokenAuthenticationService), UsernamePasswordAuthenticationFilter.class);
}