This is a concept on how to integrate ajax authentication in Spring Security.