api-dash
This commit is contained in:
parent
92f4d414a5
commit
229a1a7641
1 changed files with 2 additions and 2 deletions
|
@ -14,13 +14,13 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|||
public class DashboardController {
|
||||
|
||||
|
||||
@GetMapping(value = "/user", produces = "application/json")
|
||||
@GetMapping(value = "/api-dash/user", produces = "application/json")
|
||||
@ResponseBody
|
||||
public AccessToken getUserInfo(HttpServletRequest request) {
|
||||
return ((KeycloakPrincipal<RefreshableKeycloakSecurityContext>)((KeycloakAuthenticationToken)request.getUserPrincipal()).getPrincipal()).getKeycloakSecurityContext().getToken();
|
||||
}
|
||||
|
||||
@PostMapping("/logout")
|
||||
@PostMapping("/api-dash/logout")
|
||||
public @ResponseBody void logout(HttpServletRequest request) throws Exception {
|
||||
request.logout();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue