Index: core-module/pom.xml =================================================================== diff -u -r846ed3951668d28a7a4072a8a979c4dc1976bbe8 -r374f9679abaf1e58d5a8d4adf3719286a17286cf --- core-module/pom.xml (.../pom.xml) (revision 846ed3951668d28a7a4072a8a979c4dc1976bbe8) +++ core-module/pom.xml (.../pom.xml) (revision 374f9679abaf1e58d5a8d4adf3719286a17286cf) @@ -31,7 +31,7 @@ 313devgrp lib-module - 19.06.02 + 19.06.03 pom Index: core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityCSRFController.java =================================================================== diff -u --- core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityCSRFController.java (revision 0) +++ core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityCSRFController.java (revision 374f9679abaf1e58d5a8d4adf3719286a17286cf) @@ -0,0 +1,25 @@ +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.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; + +@RestController +@RequestMapping(value = {"/api/jsTreeServiceFramework/security"}) +public class SecurityCSRFController extends GenericAbstractController { + + @RequestMapping("/getCSRF") + public ModelAndView jsTreeCSRFtoJson(HttpServletRequest request) { + + CsrfToken token = (CsrfToken)request.getSession().getAttribute("HttpSessionCsrfTokenRepository.CSRF_TOKEN"); + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject(token); + return modelAndView; + + } + +} \ No newline at end of file Index: lib-module/pom.xml =================================================================== diff -u -r846ed3951668d28a7a4072a8a979c4dc1976bbe8 -r374f9679abaf1e58d5a8d4adf3719286a17286cf --- lib-module/pom.xml (.../pom.xml) (revision 846ed3951668d28a7a4072a8a979c4dc1976bbe8) +++ lib-module/pom.xml (.../pom.xml) (revision 374f9679abaf1e58d5a8d4adf3719286a17286cf) @@ -5,7 +5,7 @@ 313devgrp jstree-project - 19.06.02 + 19.06.03 ../pom.xml Index: pom.xml =================================================================== diff -u -r846ed3951668d28a7a4072a8a979c4dc1976bbe8 -r374f9679abaf1e58d5a8d4adf3719286a17286cf --- pom.xml (.../pom.xml) (revision 846ed3951668d28a7a4072a8a979c4dc1976bbe8) +++ pom.xml (.../pom.xml) (revision 374f9679abaf1e58d5a8d4adf3719286a17286cf) @@ -10,7 +10,7 @@ 4.0.0 313devgrp jstree-project - 19.06.02 + 19.06.03 pom jstree-project