how to integrate angularjs and java jaas based authentication?
I have a webapp which has angularJS on the frontend and Java on the backed. Angular communicates with the java backend via Restful webservices consuming and sending JSON across HTTP. I need to build the authentication mechanism for this app and was wondering how would be the best approach, currently I'm using JAAS based authentication (JDBC user table). This is how my app is configured: My web.xml configuration has: <login-config> <auth-method>FORM</auth-method> <realm-name>userauth</realm-name> <form-login-config> <form-login-page>/login.html</form-login-page> <form-error-page>/loginError