Spring AngularJS login integration with Spring Security Spring Security 3 and Spring Security 4
Spring AngularJS login integration with Spring Security Spring Security 3 and Spring Security 4 This post shows how to use angularjs for login to spring mvc with spring security set to custom <form-login> Spring security 3 Below is the login.jsp <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html> <head ng-app="login-module"> <script src="angular.min.js"></script> <script src="login.js"></script> </head> <body ng-controller="MainController"> <form> <input type="text" name="username" ng-model="myusername" /> <input type="password" name="password" ng-model="mypassword" /> <button ng-click="login(<c:url value="/" />, myusername, mypassowrd)" /> </form> </body> </html> The login.js looks like the following: (function(){ var Ma...