@@ -0,0 +1,949 @@
+package com.ims.controllers.rest;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport javax.servlet.http.HttpSession;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0A@RestController%0A@RequestMapping(value=%22/login%22)%0Apublic class LoginAPI %7B%0A%09%0A%09@Autowired%0A%09private HttpSession session;%0A%09%0A%09private String username = System.getenv(%22IMS_USER%22);%0A%09private String password = System.getenv(%22IMS_PASS%22);%0A%09%0A%09@RequestMapping(method=RequestMethod.GET, value=%22%22)%0A%09public boolean validLogin(HttpServletRequest request, HttpServletResponse response)%7B%0A%09%09if(this.username.equals(request.getAttribute(%22username%22)) && this.password.equals(request.getAttribute(%22password%22)))%7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09return false;%0A%09%7D%0A%0A%7D%0A

create attempted login controller