BAEL-315 Clean up some code formatting on the security configurations

This commit is contained in:
Tim Schimandle
2016-10-18 21:22:04 -06:00
parent 2777df61a9
commit c7551758d8
4 changed files with 18 additions and 27 deletions
@@ -13,10 +13,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception{
auth.inMemoryAuthentication()
.withUser("configUser")
.password("configPassword")
.roles("SYSTEM");
auth.inMemoryAuthentication().withUser("configUser").password("configPassword").roles("SYSTEM");
}
@Override
@@ -24,9 +21,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
http
.authorizeRequests()
.anyRequest().hasRole("SYSTEM")
.and()
.httpBasic()
.and()
.csrf().disable();
.and()
.httpBasic()
.and()
.csrf()
.disable();
}
}