diff --git a/WebContent/sso/app01.jsp b/WebContent/sso/app01.jsp
index e75459c..d0bdd9b 100644
--- a/WebContent/sso/app01.jsp
+++ b/WebContent/sso/app01.jsp
@@ -1,5 +1,4 @@
-<%@ page language="java" contentType="text/html; charset=EUC-KR"
- pageEncoding="EUC-KR"%>
+<%@ page language="java" contentType="text/html; charset=UTF8" pageEncoding="UTF-8"%>
<%
@@ -11,18 +10,18 @@
%>
-
+
- | * ID |
+ * 사용자ID |
<%=user_id%> |
@@ -33,13 +32,13 @@
- | * Ȯ |
+ * 확장정보 |
<%=ext_info%> |
- | * ū |
- retCode = [<%=retCode%>] (1000:, 1001:ð, 1002:) |
+ * 인증토큰 상태 |
+ retCode = [<%=retCode%>] (1000:누락, 1001:시간, 1002:비정상) |
diff --git a/WebContent/sso/config.jsp b/WebContent/sso/config.jsp
index 943b774..628e0a8 100644
--- a/WebContent/sso/config.jsp
+++ b/WebContent/sso/config.jsp
@@ -1,3 +1,4 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ page
import="sun.misc.*,
java.util.*,
@@ -294,3 +295,4 @@ System.out.println("nxef==="+ (String) nxef.getValue() ) ;
}
%>
+Config
\ No newline at end of file
diff --git a/WebContent/sso/login_exec.jsp b/WebContent/sso/login_exec.jsp
index 9a12928..b5a14ed 100644
--- a/WebContent/sso/login_exec.jsp
+++ b/WebContent/sso/login_exec.jsp
@@ -1,5 +1,6 @@
-<%@ page language="java" contentType="text/html;charset=EUC-KR" %>
+<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="./config.jsp" %>
+test-1
<%
String uurl = null;
@@ -7,43 +8,46 @@
String service_id = null;
String ext_info = null;
String retCode = null;
- //http://test.kjbank.com:8080/se/login_exec.jsp : ȣؾ ȴ.
- //1.SSO ID
+ //http://test.kjbank.com:8080/se/login_exec.jsp : 꼭 도메인으로 호출해야 된다.
+ //1.SSO ID 수신
sso_id = getSsoId(request);
- // 2. UURL
+ // 2. UURL 수신
uurl = request.getParameter("UURL");
if (sso_id == null) {
- //uurl ٸ, ٵ ⼭ uurl üũϴ°? uurl test.kjbank.com:8080/se/login_exec.jsp ִ±.
+ //uurl 이 없다면, 근데 여기서 uurl 은 뭘 체크하는거지? uurl 에 test.kjbank.com:8080/se/login_exec.jsp 를 넣는구나.
if (uurl == null) uurl = ASCP_URL;
- // 3. SSO α ̵
- goLoginPage(response, uurl);
+ // 3. SSO 인증 정보가 없으면 통합 로그인 페이지로 이동
+ out.println("go sso login");
+ //goLoginPage(response, uurl);
return;
} else {
- //4.Ű ȿ Ȯ :0()
+ //4.쿠키 유효성 확인 :0(정상)
retCode = getEamSessionCheck(request,response);
+ out.println("retCode : " + retCode);
if(!retCode.equals("0")){
- goErrorPage(response, Integer.parseInt(retCode));
+ out.println("go error page");
+ //goErrorPage(response, Integer.parseInt(retCode));
return;
}
/***********************************************************************************
* < TO-DO >
- * SSO ϷǾǷ, ý α dzʶٵ ڵ带 մϴ.
- * SSO sso_id Ǿ ֽϴ.
- * ýۿ ʿ ϴ ڵ带 ۼմϴ.
+ * SSO 통합 인증이 완료되었으므로, 업무 시스템 로그인은 건너뛰도록 코드를 수정합니다.
+ * SSO 에서 제공한 사번은 sso_id 변수에 저장되어 있습니다.
+ * 시스템에서 필요로 하는 세션 정보를 세팅 코드를 여기에 작성합니다.
************************************************************************************/
- //5 Ȯ ȸ
+ //5 확장 정보 조회
ext_info = getUserExField(sso_id, "CELLPHONENO");
service_id = SERVICE_NAME;
out.println ("SERVICE_NAME : " + service_id);
//
- //6.ýۿ ̵
- /*
+ //6.업무시스템에 읽을 사용자 아이디를 세션으로 생성
+ /* 변경 전
String EAM_ID = (String)session.getAttribute("SSO_ID");
if(EAM_ID == null || EAM_ID.equals("")) {
session.setAttribute("SSO_ID", sso_id);
@@ -54,7 +58,7 @@
*/
- /* */
+ /*변경 후*/
if(!sso_id.replace(" ", "").equals("")) {
session.setAttribute("SSO_ID", sso_id);
session.setAttribute("APP_ID", service_id);
@@ -66,19 +70,11 @@
out.println ("EXT_INFO : " + ext_info);
out.println ("RET_CODE : " + retCode);
out.println ("ext_info : " + ext_info);
-
- Properties info = ssoModule.getUserInfos(ssoId);
- if (info != null) {
- out.println("info - " + info.keySet());
- info.keySet().forEach( k -> {
- out.println(k + " - " + info.get(k));
- });
- } else {
- out.println("User info is null");
- }
}
+
+ out.println("go app");
- //7.ý ȣ( Ǵ ) --> ýۿ ° URL !
+ //7.업무시스템 페이지 호출(세션 페이지 또는 메인페이지 지정) --> 업무시스템에 맞게 URL 수정!
//response.sendRedirect(SERVER_URL + ":" + SERVER_PORT + "/se/app01.jsp");
}
%>