Example for Using Spring Security.
- API Token based authentication
- URL Path based authentication
- Implement login/logout system for REST APIs
- Accept JSON login message
- Handle CSRF for REST APIs
- Example for returning 200 with custom response on success/failure