hello,
i am using spring security with
angularJS.
i submit login form with username and password on post request to the spring security on the server.
the problem is that the authentication fail.
in spring security its fail on UsernamePasswordAuthenticationFilter.java filter
because request.getParameter(usernameParameter); returns null for my post request.
in class UsernamePasswordAuthenticationFilter.java method attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
the attemp is valid only for post request request.getMethod().equals("POST")
but next it try to retrieve username parameter from the post request ( request.getParameter(usernameParameter); ) which return null.
my login post request is :
spring filter code :
1. why do i get username null? how can i fix it?
2. it is POST request can we get parameter from the request by request.getParameter()?
Itamar.