sso update
This commit is contained in:
@@ -11,6 +11,7 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import javax.servlet.http.Cookie;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Properties;
|
||||
@@ -52,6 +53,18 @@ public class SsoController implements InterceptorSkipController {
|
||||
log.debug("retCode : {}", 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));
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user