sso.jsp 871 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <%@page contentType="text/html; charset=euc-kr" %>
  2. <%@ page import="kr.co.hit.live.util.PropertyHelper"%>
  3. <%!
  4. String DEFAULT_SSO_COOKIE_NAME = "ssotoken";
  5. PropertyHelper ph = new PropertyHelper("live.himed.config");
  6. //SSO 쿠키 명을 담아 놓는다.
  7. String ssoCookieName = ph.getString("sso","cookie",DEFAULT_SSO_COOKIE_NAME);
  8. %>
  9. <%
  10. String ssotoken = request.getParameter("ssotoken");
  11. if (ssotoken == null) {
  12. // no sso token : redirect to login page
  13. %>
  14. <script>
  15. document.location="/himed/webapps/com/hismainweb/jsp/himed.live";
  16. </script>
  17. <%
  18. } else {
  19. // Cookie 생성
  20. Cookie ssoCookie = new Cookie(ssoCookieName, ssotoken);
  21. ssoCookie.setPath("/");
  22. response.addCookie(ssoCookie);
  23. %>
  24. <script>
  25. document.location="/himed/webapps/com/hismainweb/jsp/login.live";
  26. </script>
  27. <%
  28. }
  29. %>
  30. <html>
  31. <head>
  32. <title>CMCnU</title>
  33. </head>
  34. <body>
  35. </body>
  36. </html>