Revision 61371
Added by Konstantinos Spyrou almost 3 years ago
UserController.java | ||
---|---|---|
18 | 18 |
private UserServiceImpl userService; |
19 | 19 |
|
20 | 20 |
@RequestMapping(value = "/login" , method = RequestMethod.GET) |
21 |
@PreAuthorize("hasRole('ROLE_USER')")
|
|
21 |
@PreAuthorize("hasAuthority('REGISTERED_USER')")
|
|
22 | 22 |
public ResponseEntity<Object> login() { |
23 | 23 |
return userService.login(); |
24 | 24 |
} |
Also available in: Unified diff
1. changed user roles defined in the project to authorities given by the aai.
2. created method returning user roles with desired status (active, deleted).