I am implementing a REST service with Spring MVC and Spring Security (both 3.0.5). I use a security namespace that does not manually define Spring beans. I am having difficulty with the login process. What I'm trying to achieve is the following:
POST for URL / login will begin the authentication process.
There should not be any real form, so I do not use the form-login element .... Without this element, nowhere is the UserPasswordAuthenticationFilter missing in the security chain, so I thought I would add it through the custom-filter element ... and continue from there.
These are its essence, not questions:
- Is this a good way to implement authentication?
- How exactly should I add this filter and to what position in the filter chain?
- is it enough to add this filter or do i need something else?
Any feedback is appreciated. Thank you
source share