Implemented Spring Security authentication