|
|
|
|
@ -8,6 +8,7 @@ import javax.servlet.http.*;
|
|
|
|
|
import org.egovframe.rte.psl.dataaccess.util.*;
|
|
|
|
|
import org.slf4j.*;
|
|
|
|
|
import org.springframework.beans.factory.annotation.*;
|
|
|
|
|
import org.springframework.http.*;
|
|
|
|
|
import org.springframework.security.authentication.*;
|
|
|
|
|
import org.springframework.security.core.authority.*;
|
|
|
|
|
import org.springframework.security.core.context.*;
|
|
|
|
|
@ -29,6 +30,9 @@ import egovframework.com.cmm.util.*;
|
|
|
|
|
import egovframework.let.uat.uia.service.*;
|
|
|
|
|
import egovframework.let.utl.fcc.service.*;
|
|
|
|
|
import egovframework.let.utl.sim.service.*;
|
|
|
|
|
import io.swagger.v3.oas.annotations.*;
|
|
|
|
|
import io.swagger.v3.oas.annotations.responses.*;
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.*;
|
|
|
|
|
import lombok.extern.slf4j.*;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
@ -68,6 +72,7 @@ import com.gpki.servlet.GPKIHttpServletResponse;
|
|
|
|
|
*/
|
|
|
|
|
@Slf4j
|
|
|
|
|
@Controller
|
|
|
|
|
@Tag(name="EgovLoginController",description = "로그인 MVC 관련")
|
|
|
|
|
public class EgovLoginController {
|
|
|
|
|
|
|
|
|
|
@Value("${Globals.MainPage}")
|
|
|
|
|
@ -93,15 +98,20 @@ public class EgovLoginController {
|
|
|
|
|
|
|
|
|
|
/** log */
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(EgovLoginController.class);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 로그인 화면으로 들어간다
|
|
|
|
|
* @param vo - 로그인후 이동할 URL이 담긴 LoginVO
|
|
|
|
|
* @return 로그인 페이지
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@Operation(
|
|
|
|
|
summary = "로그인 페이지",
|
|
|
|
|
description = "로그인 페이지 return",
|
|
|
|
|
tags = {"EgovLoginController"}
|
|
|
|
|
)
|
|
|
|
|
@IncludedInfo(name = "로그인", listUrl = "/uat/uia/egovLoginUsr.do", order = 10, gid = 10)
|
|
|
|
|
@RequestMapping(value = "/uat/uia/egovLoginUsr.do")
|
|
|
|
|
@RequestMapping(value = "/uat/uia/egovLoginUsr.do", method = { RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String loginUsrView(@ModelAttribute("loginVO") LoginVO loginVO, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
|
|
|
if (EgovComponentChecker.hasComponent("mberManageService")) {
|
|
|
|
|
model.addAttribute("useMemberManage", "true");
|
|
|
|
|
@ -146,7 +156,12 @@ public class EgovLoginController {
|
|
|
|
|
* @return result - 로그인결과(세션정보)
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "/uat/uia/actionLogin.do")
|
|
|
|
|
@Operation(
|
|
|
|
|
summary = "로그인",
|
|
|
|
|
description = "로그인 처리",
|
|
|
|
|
tags = {"EgovLoginController"}
|
|
|
|
|
)
|
|
|
|
|
@RequestMapping(value = "/uat/uia/actionLogin.do", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
|
|
|
|
|
public String actionLogin(@ModelAttribute("loginVO") LoginVO loginVO, HttpServletRequest request, ModelMap model) throws Exception {
|
|
|
|
|
|
|
|
|
|
// 1. 로그인인증제한 활성화시
|
|
|
|
|
@ -194,9 +209,6 @@ public class EgovLoginController {
|
|
|
|
|
SecurityContextHolder.getContext().setAuthentication(authentication);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 3-1. 로그인 정보를 세션에 저장
|
|
|
|
|
request.getSession().setAttribute("loginVO", resultVO);
|
|
|
|
|
// 2019.10.01 로그인 인증세션 추가
|
|
|
|
|
@ -297,6 +309,11 @@ public class EgovLoginController {
|
|
|
|
|
* @return 로그인 페이지
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@Operation(
|
|
|
|
|
summary = "메인 페이지",
|
|
|
|
|
description = "메인 페잊 처리",
|
|
|
|
|
tags = {"EgovLoginController"}
|
|
|
|
|
)
|
|
|
|
|
@RequestMapping(value = "/uat/uia/actionMain.do")
|
|
|
|
|
public String actionMain(HttpServletRequest request,ModelMap model) throws Exception {
|
|
|
|
|
|
|
|
|
|
@ -360,7 +377,12 @@ public class EgovLoginController {
|
|
|
|
|
* @return String
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "/uat/uia/actionLogout.do")
|
|
|
|
|
@Operation(
|
|
|
|
|
summary = "로그 아웃",
|
|
|
|
|
description = "로그 아웃 처리",
|
|
|
|
|
tags = {"EgovLoginController"}
|
|
|
|
|
)
|
|
|
|
|
@RequestMapping(value = "/uat/uia/actionLogout.do", method = { RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String actionLogout(HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
|
|
|
|
|
|
|
|
/*String userIp = EgovClntInfo.getClntIP(request);
|
|
|
|
|
@ -597,6 +619,11 @@ public class EgovLoginController {
|
|
|
|
|
* @return result - String
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@Operation(
|
|
|
|
|
summary = "세션 타임 아웃 시간 연장",
|
|
|
|
|
description = "세션 타임 아웃 시간 연장",
|
|
|
|
|
tags = {"EgovLoginController"}
|
|
|
|
|
)
|
|
|
|
|
@RequestMapping(value="/uat/uia/refreshSessionTimeout.do")
|
|
|
|
|
public ModelAndView refreshSessionTimeout(@RequestParam Map<String, Object> commandMap) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
@ -613,6 +640,11 @@ public class EgovLoginController {
|
|
|
|
|
* @return result - String
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@Operation(
|
|
|
|
|
summary = "비밀번호 유효기간 팝업",
|
|
|
|
|
description = "비밀번호 유효기간 팝업",
|
|
|
|
|
tags = {"EgovLoginController"}
|
|
|
|
|
)
|
|
|
|
|
@RequestMapping(value="/uat/uia/noticeExpirePwd.do")
|
|
|
|
|
public String noticeExpirePwd(@RequestParam Map<String, Object> commandMap, ModelMap model) throws Exception {
|
|
|
|
|
|
|
|
|
|
|