sso update
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user