커밋
This commit is contained in:
parent
a5935adda5
commit
fa0ef54d8f
@ -132,6 +132,7 @@ public class SecurityConfig {
|
|||||||
// 보안이슈로인해 필요한 데이터만
|
// 보안이슈로인해 필요한 데이터만
|
||||||
UserVO loginVO = new UserVO();
|
UserVO loginVO = new UserVO();
|
||||||
loginVO.setUserName( userDetails.getUser().getUserName());
|
loginVO.setUserName( userDetails.getUser().getUserName());
|
||||||
|
loginVO.setBiostarId( userDetails.getUser().getBiostarId());
|
||||||
request.getSession().setAttribute("loginVO", loginVO);
|
request.getSession().setAttribute("loginVO", loginVO);
|
||||||
|
|
||||||
// 요청 URL의 호스트를 추출 (디버깅용)
|
// 요청 URL의 호스트를 추출 (디버깅용)
|
||||||
|
|||||||
@ -29,11 +29,15 @@ public class DashboardController {
|
|||||||
, Model model
|
, Model model
|
||||||
, @AuthenticationPrincipal CustomUserDetails loginUser) {
|
, @AuthenticationPrincipal CustomUserDetails loginUser) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
log.info("loginUser :: [{}]", loginUser.getUser().getBiostarId());
|
||||||
|
|
||||||
List<BizTripVO> myApprovalslist = bizTripService.getMyPendingApprovals(loginUser.getUser().getUniqId());
|
List<BizTripVO> myApprovalslist = bizTripService.getMyPendingApprovals(loginUser.getUser().getUniqId());
|
||||||
|
|
||||||
|
|
||||||
model.addAttribute("myApprovalslist", myApprovalslist);
|
model.addAttribute("myApprovalslist", myApprovalslist);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
// Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
||||||
// System.out.println("authentication.getAuthorities(); : "+ authentication.getAuthorities());
|
// System.out.println("authentication.getAuthorities(); : "+ authentication.getAuthorities());
|
||||||
// HttpSession session = request.getSession();
|
// HttpSession session = request.getSession();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user