temporarily removed authentication

This commit is contained in:
Main
2016-02-17 00:12:38 +03:00
parent ffeb521e3b
commit 43916e10aa
2 changed files with 7 additions and 7 deletions

View File

@@ -46,18 +46,18 @@ public class AuthConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable();
/*.authorizeRequests()
.antMatchers("*//**").permitAll()
.antMatchers("/health").permitAll()
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()
.antMatchers(HttpMethod.POST, "/login").permitAll()*/
.anyRequest().authenticated().and()
.addFilterBefore(new StatelessAuthenticationFilter(tokenAuthenticationService), UsernamePasswordAuthenticationFilter.class);*/
.addFilterBefore(new StatelessAuthenticationFilter(tokenAuthenticationService), UsernamePasswordAuthenticationFilter.class);
}
@Bean

View File

@@ -33,6 +33,6 @@ public class BankingWebConfiguration extends WebMvcConfigurerAdapter {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/*").setViewName("forward:/index.html");
registry.addViewController("/").setViewName("forward:/index.html");
}
}