Class UserAuthenticationResource


  • @Path("/auth/user")
    public class UserAuthenticationResource
    extends Object
    Jax-Rs resource allowing users to authenticate with username and password

    Author:
    Daniel Meyer
    • Field Detail

      • request

        @Context
        protected javax.servlet.http.HttpServletRequest request
    • Constructor Detail

      • UserAuthenticationResource

        public UserAuthenticationResource()
    • Method Detail

      • getAuthenticatedUser

        @GET
        @Path("/{processEngineName}")
        public javax.ws.rs.core.Response getAuthenticatedUser​(@PathParam("processEngineName")
                                                              String engineName)
      • doLogin

        @POST
        @Path("/{processEngineName}/login/{appName}")
        public javax.ws.rs.core.Response doLogin​(@PathParam("processEngineName")
                                                 String engineName,
                                                 @PathParam("appName")
                                                 String appName,
                                                 @FormParam("username")
                                                 String username,
                                                 @FormParam("password")
                                                 String password)
      • doLogout

        @POST
        @Path("/{processEngineName}/logout")
        public javax.ws.rs.core.Response doLogout​(@PathParam("processEngineName")
                                                  String engineName)
      • unauthorized

        protected javax.ws.rs.core.Response unauthorized()
      • forbidden

        protected javax.ws.rs.core.Response forbidden()
      • notFound

        protected javax.ws.rs.core.Response notFound()