mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 21:43:11 +00:00
Fix code style issues
This commit is contained in:
@@ -95,8 +95,9 @@ public class AuthenticationRestController implements InitializingBean {
|
|||||||
"Authentication failed for user " + user + ": The credentials you provided are not " +
|
"Authentication failed for user " + user + ": The credentials you provided are not " +
|
||||||
"valid.");
|
"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() {
|
public ResponseEntity login() {
|
||||||
return ResponseEntity.status(HttpStatus.METHOD_NOT_ALLOWED).body("Only POST is allowed for login requests.");
|
return ResponseEntity.status(HttpStatus.METHOD_NOT_ALLOWED).body("Only POST is allowed for login requests.");
|
||||||
}
|
}
|
||||||
|
@@ -52,8 +52,7 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
|
|||||||
private CustomLogoutHandler customLogoutHandler;
|
private CustomLogoutHandler customLogoutHandler;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(WebSecurity webSecurity) throws Exception
|
public void configure(WebSecurity webSecurity) throws Exception {
|
||||||
{
|
|
||||||
webSecurity
|
webSecurity
|
||||||
.ignoring()
|
.ignoring()
|
||||||
.antMatchers(HttpMethod.GET, "/api/authn/login")
|
.antMatchers(HttpMethod.GET, "/api/authn/login")
|
||||||
|
Reference in New Issue
Block a user