<%@ page language="java" contentType="text/html; charset=UTF-8"%> <% /** 예외 처리 -> isign_sso_login_include.jsp가 직접 호출되면 index 및 business 페이지로 send */ String err = javax.servlet.http.HttpUtils.getRequestURL(request).toString(); String SERVICE_BUSINESS_PAGE = session.getAttribute("SERVICE_BUSINESS_PAGE") == null ? "/index.jsp" : session.getAttribute("SERVICE_BUSINESS_PAGE").toString(); if (err.indexOf("isign_sso_login_include.jsp") != -1) { response.sendRedirect(SERVICE_BUSINESS_PAGE); return; } String SSID = session.getAttribute("SSID") == null ? "" : session.getAttribute("SSID").toString(); String AUTHORIZATION_URL = session.getAttribute("AUTHORIZATION_URL") == null ? "" : session.getAttribute("AUTHORIZATION_URL").toString(); String AUTHORIZATION_SSL_URL = session.getAttribute("AUTHORIZATION_SSL_URL") == null ? "" : session.getAttribute("AUTHORIZATION_SSL_URL").toString(); String authMethod = session.getAttribute("authMethod") == null ? "" : session.getAttribute("authMethod").toString(); String USEISIGNPAGE = session.getAttribute("USEISIGNPAGE") == null ? "" : session.getAttribute("USEISIGNPAGE").toString(); String checkServer = session.getAttribute("checkServer") == null ? "" : session.getAttribute("checkServer").toString(); String Exception = session.getAttribute("Exception") == null ? "" : session.getAttribute("Exception").toString(); String EXISTLOGIN = session.getAttribute("EXISTING_LOGIN_PAGE") == null ? "" : session.getAttribute("EXISTING_LOGIN_PAGE").toString(); /** 예외 처리 -> checkServer를 거치지 않았으면 buseinss 페이지 호출 -> 인증서버와 통신도중 문제가 발생 되면 기존 로그인 페이지로 리다이렉션 */ if (true == checkServer.equals("")) { response.sendRedirect(SERVICE_BUSINESS_PAGE); return; } else { if (true == Exception.equals("Y")) { if (EXISTLOGIN.equals("") == true) { // 인증서버와 통신도중 문제가 발생하면 출력되는 메시지 out.println("

네트워크에 문제가 있습니다. 확인해주세요.

"); return; } else { // 인증서버와 통신도중 문제가 발생하면 EXISTLOGIN으로 리다이렉션 response.sendRedirect(EXISTLOGIN); return; } } } /************************************************************ * 공통 로그인 부분 ************************************************************/ if (true == USEISIGNPAGE.equals("Y")) { if (authMethod.indexOf("ssl") != -1) { response.sendRedirect(AUTHORIZATION_SSL_URL+"LoginServlet?method=idpwForm&ssid="+SSID); return; } else { response.sendRedirect(AUTHORIZATION_URL+"LoginServlet?method=idpwForm&ssid="+SSID); return; } } else { /************************************************************ * 개별 로그인 부분 ************************************************************/ if (authMethod.indexOf("ssl") == -1) { %> <% if (authMethod == "idpw") {%> <%@ include file="/sso/webcrypto/include_webcrypto/include_wc-e2e-simple.jsp" %> <%} else { %> <%@ include file="/sso/webcrypto/include_webcrypto/include_wc-all.jsp" %> <% } %> <% } %> <% } %>