Fix code style issues

This commit is contained in:
Andrea Bollini
2018-05-18 17:05:17 +02:00
parent eee6529930
commit 0d4582484b
2 changed files with 4 additions and 4 deletions

View File

@@ -95,8 +95,9 @@ public class AuthenticationRestController implements InitializingBean {
"Authentication failed for user " + user + ": The credentials you provided are not " +
"valid.");
}
@RequestMapping(value = "/login", method = {RequestMethod.GET, RequestMethod.PUT, RequestMethod.PATCH, RequestMethod.DELETE})
@RequestMapping(value = "/login", method = { RequestMethod.GET, RequestMethod.PUT, RequestMethod.PATCH,
RequestMethod.DELETE })
public ResponseEntity login() {
return ResponseEntity.status(HttpStatus.METHOD_NOT_ALLOWED).body("Only POST is allowed for login requests.");
}

View File

@@ -52,8 +52,7 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
private CustomLogoutHandler customLogoutHandler;
@Override
public void configure(WebSecurity webSecurity) throws Exception
{
public void configure(WebSecurity webSecurity) throws Exception {
webSecurity
.ignoring()
.antMatchers(HttpMethod.GET, "/api/authn/login")