@Path(value="/auth/user") public class UserAuthenticationResource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PATH |
protected javax.servlet.http.HttpServletRequest |
request |
Constructor and Description |
---|
UserAuthenticationResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
doLogin(String engineName,
String appName,
String username,
String password) |
javax.ws.rs.core.Response |
doLogout(String engineName) |
protected javax.ws.rs.core.Response |
forbidden() |
javax.ws.rs.core.Response |
getAuthenticatedUser(String engineName) |
protected List<String> |
getGroupsOfUser(ProcessEngine engine,
String userId) |
protected List<String> |
getTenantsOfUser(ProcessEngine engine,
String userId) |
protected javax.ws.rs.core.Response |
notFound() |
protected javax.ws.rs.core.Response |
unauthorized() |
public static final String PATH
@Context protected javax.servlet.http.HttpServletRequest request
@GET @Path(value="/{processEngineName}") public javax.ws.rs.core.Response getAuthenticatedUser(@PathParam(value="processEngineName") String engineName)
@POST @Path(value="/{processEngineName}/login/{appName}") public javax.ws.rs.core.Response doLogin(@PathParam(value="processEngineName") String engineName, @PathParam(value="appName") String appName, @FormParam(value="username") String username, @FormParam(value="password") String password)
protected List<String> getGroupsOfUser(ProcessEngine engine, String userId)
protected List<String> getTenantsOfUser(ProcessEngine engine, String userId)
@POST @Path(value="/{processEngineName}/logout") public javax.ws.rs.core.Response doLogout(@PathParam(value="processEngineName") String engineName)
protected javax.ws.rs.core.Response unauthorized()
protected javax.ws.rs.core.Response forbidden()
protected javax.ws.rs.core.Response notFound()
Copyright © 2022. All rights reserved.