Index: core-module/pom.xml =================================================================== diff -u -rcda948dac69b47bc140da3151ee29d61adbf06af -r823d57b373afdb8eebc9d80a1eeabea0313fbde6 --- core-module/pom.xml (.../pom.xml) (revision cda948dac69b47bc140da3151ee29d61adbf06af) +++ core-module/pom.xml (.../pom.xml) (revision 823d57b373afdb8eebc9d80a1eeabea0313fbde6) @@ -7,7 +7,7 @@ 313devgrp jstree-project - 19.06.05 + 19.06.06 ../pom.xml @@ -31,7 +31,7 @@ 313devgrp lib-module - 19.06.05 + 19.06.06 pom Index: core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityController.java =================================================================== diff -u -r5029b84ee1b548164c6a131285a05fa90a9486a9 -r823d57b373afdb8eebc9d80a1eeabea0313fbde6 --- core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityController.java (.../SecurityController.java) (revision 5029b84ee1b548164c6a131285a05fa90a9486a9) +++ core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityController.java (.../SecurityController.java) (revision 823d57b373afdb8eebc9d80a1eeabea0313fbde6) @@ -1,41 +1,15 @@ package egovframework.com.ext.jstree.support.security.controller; import egovframework.com.ext.jstree.support.mvc.GenericAbstractController; -import org.springframework.security.web.csrf.CsrfToken; -import org.springframework.security.web.csrf.HttpSessionCsrfTokenRepository; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.servlet.ModelAndView; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - @Controller @RequestMapping(value = {"/api/jsTreeServiceFramework/security"}) public class SecurityController extends GenericAbstractController { - public static final String DEFAULT_CSRF_TOKEN_ATTR_NAME = HttpSessionCsrfTokenRepository.class.getName().concat(".CSRF_TOKEN"); - @RequestMapping("/csrf.do") public String jsTreeCSRFtoJson() { return "egovframework/com/ext/jstree/csrf"; } - - @RequestMapping("/getCSRF.do") - public ModelAndView jsTreeGetCSRFtoJson(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException { - - String token = request.getParameter("X-CSRF-TOKEN"); - if (token == null || "".equals(token)) { - token = request.getHeader("X-CSRF-TOKEN"); - } - - CsrfToken sessionToken = (CsrfToken) request.getSession().getAttribute(DEFAULT_CSRF_TOKEN_ATTR_NAME); - - ModelAndView modelAndView = new ModelAndView("jsonView"); - modelAndView.addObject("result", sessionToken.getToken().toString()); - return modelAndView; - } - } Index: lib-module/pom.xml =================================================================== diff -u -rcda948dac69b47bc140da3151ee29d61adbf06af -r823d57b373afdb8eebc9d80a1eeabea0313fbde6 --- lib-module/pom.xml (.../pom.xml) (revision cda948dac69b47bc140da3151ee29d61adbf06af) +++ lib-module/pom.xml (.../pom.xml) (revision 823d57b373afdb8eebc9d80a1eeabea0313fbde6) @@ -5,7 +5,7 @@ 313devgrp jstree-project - 19.06.05 + 19.06.06 ../pom.xml Index: pom.xml =================================================================== diff -u -rcda948dac69b47bc140da3151ee29d61adbf06af -r823d57b373afdb8eebc9d80a1eeabea0313fbde6 --- pom.xml (.../pom.xml) (revision cda948dac69b47bc140da3151ee29d61adbf06af) +++ pom.xml (.../pom.xml) (revision 823d57b373afdb8eebc9d80a1eeabea0313fbde6) @@ -10,7 +10,7 @@ 4.0.0 313devgrp jstree-project - 19.06.05 + 19.06.06 pom jstree-project