From b84a84479ac2e2384e36d8659482c944d093b0ec Mon Sep 17 00:00:00 2001 From: Rinjae Date: Thu, 27 Nov 2025 18:52:30 +0900 Subject: [PATCH] sso update --- WebContent/sso/config.jsp | 3 ++- WebContent/sso/login_exec.jsp | 20 ++++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/WebContent/sso/config.jsp b/WebContent/sso/config.jsp index 9bbc384..943b774 100644 --- a/WebContent/sso/config.jsp +++ b/WebContent/sso/config.jsp @@ -21,7 +21,8 @@ private String SERVICE_NAME = "Web"; private String SERVER_URL = "http://manage-eapimt.kjbank.com"; private String SERVER_PORT = "30100"; - private String ASCP_URL = SERVER_URL + ":" + SERVER_PORT + "/monitoring/sso/login_exec.jsp"; + //private String ASCP_URL = SERVER_URL + ":" + SERVER_PORT + "/monitoring/sso/login_exec.jsp"; + private String ASCP_URL = "https://manage-eapimt.kjbank.com/monitoring/sso/login_exec.jsp"; /*************************************************************************************************/ diff --git a/WebContent/sso/login_exec.jsp b/WebContent/sso/login_exec.jsp index a089483..9a12928 100644 --- a/WebContent/sso/login_exec.jsp +++ b/WebContent/sso/login_exec.jsp @@ -40,7 +40,7 @@ //5 È®Àå Á¤º¸ Á¶È¸ ext_info = getUserExField(sso_id, "CELLPHONENO"); service_id = SERVICE_NAME; - System.out.println ("SERVICE_NAME : " + service_id); + out.println ("SERVICE_NAME : " + service_id); // //6.¾÷¹«½Ã½ºÅÛ¿¡ ÀÐÀ» »ç¿ëÀÚ ¾ÆÀ̵𸦠¼¼¼ÇÀ¸·Î »ý¼º /* º¯°æ Àü @@ -60,10 +60,26 @@ session.setAttribute("APP_ID", service_id); session.setAttribute("EXT_INFO", ext_info); session.setAttribute("RET_CODE", retCode); + + out.println ("SSO_ID : " + sso_id); + out.println ("APP_ID : " + service_id); + 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"); + } } //7.¾÷¹«½Ã½ºÅÛ ÆäÀÌÁö È£Ãâ(¼¼¼Ç ÆäÀÌÁö ¶Ç´Â ¸ÞÀÎÆäÀÌÁö ÁöÁ¤) --> ¾÷¹«½Ã½ºÅÛ¿¡ ¸Â°Ô URL ¼öÁ¤! - response.sendRedirect(SERVER_URL + ":" + SERVER_PORT + "/se/app01.jsp"); + //response.sendRedirect(SERVER_URL + ":" + SERVER_PORT + "/se/app01.jsp"); } %>