sso update

This commit is contained in:
Rinjae
2025-11-28 09:38:07 +09:00
parent 71c2b6dd1c
commit 4724070480
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
%> %>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title> <title>Insert title here</title>
</head> </head>
<body> <body>
@@ -11,6 +11,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.Properties; import java.util.Properties;
@@ -52,6 +53,18 @@ public class SsoController implements InterceptorSkipController {
log.debug("retCode : {}", retCode); log.debug("retCode : {}", retCode);
if (!prop.isSsoIgnoreValidation() && !"0".equalsIgnoreCase(retCode)) { if (!prop.isSsoIgnoreValidation() && !"0".equalsIgnoreCase(retCode)) {
// 디버깅용 쿠키 목록 출력
Cookie[] cookies = req.getCookies();
if (cookies == null || cookies.length == 0) {
log.debug("No cookies");
}
for (Cookie c: cookies) {
log.debug("Cookie[{}] : {}, Domain={}, Path={}, Max-Age={}, Secure={}, Version={}",
c.getName(), c.getValue(), c.getDomain(), c.getPath(), c.getMaxAge(), c.getSecure(), c.getVersion());
}
ssoModule.goErrorPage(res, Integer.parseInt(retCode)); ssoModule.goErrorPage(res, Integer.parseInt(retCode));
return null; return null;
} }