|
|
@ -15,6 +15,8 @@ import javax.servlet.http.HttpSession;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
|
|
|
|
|
import org.springframework.security.core.context.SecurityContext;
|
|
|
|
|
|
|
|
import org.springframework.security.core.context.SecurityContextHolder;
|
|
|
|
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
|
|
|
|
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
|
|
|
|
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
|
|
|
|
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
@ -29,11 +31,12 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.context.support.WebApplicationContextUtils;
|
|
|
|
import org.springframework.web.context.support.WebApplicationContextUtils;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import egovframework.rte.fdl.security.config.SecurityConfig;
|
|
|
|
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
|
|
|
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
|
|
|
import kr.xit.framework.biz.mng.user.dto.XitUserInfoVO;
|
|
|
|
|
|
|
|
import kr.xit.framework.biz.cmm.service.XitFrameCrudService;
|
|
|
|
|
|
|
|
import kr.xit.framework.biz.cmm.dto.XitLoginVO;
|
|
|
|
import kr.xit.framework.biz.cmm.dto.XitLoginVO;
|
|
|
|
|
|
|
|
import kr.xit.framework.biz.cmm.service.XitFrameCrudService;
|
|
|
|
import kr.xit.framework.biz.cmm.service.XitLoginService;
|
|
|
|
import kr.xit.framework.biz.cmm.service.XitLoginService;
|
|
|
|
|
|
|
|
import kr.xit.framework.biz.mng.user.dto.XitUserInfoVO;
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants;
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants;
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants.TILES_TYPE;
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants.TILES_TYPE;
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants.USER_SE;
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants.USER_SE;
|
|
|
@ -200,7 +203,15 @@ public class XitLoginController {
|
|
|
|
public String actionLogout(HttpServletRequest request) {
|
|
|
|
public String actionLogout(HttpServletRequest request) {
|
|
|
|
request.getSession().setAttribute("XitLoginSession", null);
|
|
|
|
request.getSession().setAttribute("XitLoginSession", null);
|
|
|
|
|
|
|
|
|
|
|
|
return "redirect:/egov_security_logout.do";
|
|
|
|
ApplicationContext act = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getSession().getServletContext());
|
|
|
|
|
|
|
|
SecurityConfig config = (SecurityConfig)act.getBean(SecurityConfig.class);
|
|
|
|
|
|
|
|
String logoutSuccessUrl = config.getLogoutSuccessUrl();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SecurityContext context = SecurityContextHolder.getContext();
|
|
|
|
|
|
|
|
context.setAuthentication(null);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//return "redirect:/egov_security_logout.do";
|
|
|
|
|
|
|
|
return "forward:" + logoutSuccessUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -260,8 +271,8 @@ public class XitLoginController {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <pre>메소드 설명: 아이디 찾기 페이지 요청별 팝업</pre>
|
|
|
|
* <pre>메소드 설명: 아이디 찾기 페이지 요청별 팝업</pre>
|
|
|
|
* @param model
|
|
|
|
* @param page
|
|
|
|
* @param session
|
|
|
|
* @param vo
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
* @author: 김동규
|
|
|
|
* @author: 김동규
|
|
|
|
* @throws Exception
|
|
|
|
* @throws Exception
|
|
|
@ -294,10 +305,8 @@ public class XitLoginController {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <pre>메소드 설명: 비밀번호 찾기 페이지 요청별 팝업</pre>
|
|
|
|
* <pre>메소드 설명: 비밀번호 찾기 페이지 요청별 팝업</pre>
|
|
|
|
* @param model
|
|
|
|
|
|
|
|
* @param session
|
|
|
|
|
|
|
|
* @param xitUserInfoVO
|
|
|
|
* @param xitUserInfoVO
|
|
|
|
* @return
|
|
|
|
* @param page
|
|
|
|
* @throws IOException
|
|
|
|
* @throws IOException
|
|
|
|
* @throws SQLException
|
|
|
|
* @throws SQLException
|
|
|
|
* @throws RuntimeException String 요청처리 후 응답객체
|
|
|
|
* @throws RuntimeException String 요청처리 후 응답객체
|
|
|
|