Class OauthUserServiceController


  • @Controller
    @RequestMapping("oauth/login")
    public class OauthUserServiceController
    extends AbstractController
    • Constructor Detail

      • OauthUserServiceController

        public OauthUserServiceController()
    • Method Detail

      • createUser

        @RequestMapping(value="/register",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public Object createUser​(javax.servlet.http.HttpServletRequest request,
                                 @RequestBody
                                 UserMasterObject userMasterObject,
                                 javax.servlet.http.HttpServletResponse response)
        Parameters:
        request - HttpServletRequest
        userMasterObject - User to be created on the Platform
        response - artifactService
        Returns:
        Returns Status Code and Message serialized as JSON
      • login

        @RequestMapping(value={},
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public AbstractResponseObject login​(javax.servlet.http.HttpServletRequest request,
                                            @RequestBody
                                            User user,
                                            javax.servlet.http.HttpServletResponse response)
      • getUsernameFromAuth

        @RequestMapping(value="/username",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public void getUsernameFromAuth​(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response)