Add login/logout services
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 19 Nov 2009 16:31:44 +0000 (16:31 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 19 Nov 2009 16:31:44 +0000 (16:31 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@3114 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

security/runtime/org.argeo.security.mvc/src/main/java/org/argeo/security/mvc/UsersRolesController.java

index 8e4b574c7c58581bc6319ed5d93b1575a0ab9685..662c20fb370435aeb346c0f1d6fdeca55e8c2572 100644 (file)
@@ -9,6 +9,7 @@ import org.argeo.server.BooleanAnswer;
 import org.argeo.server.ServerAnswer;
 import org.argeo.server.ServerDeserializer;
 import org.argeo.server.mvc.MvcConstants;
+import org.springframework.security.context.SecurityContextHolder;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.ModelAttribute;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -35,6 +36,7 @@ public class UsersRolesController implements MvcConstants {
        @ModelAttribute(ANSWER_MODEL_KEY)
        public ArgeoUser login(@RequestParam("username") String username,
                        @RequestParam("password") String password) {
+               //SecurityContextHolder.getContext().getAuthentication().
                return securityService.getSecurityDao().getCurrentUser();
        }