Class UserAuthenticationResource
- java.lang.Object
- 
- org.camunda.bpm.webapp.impl.security.auth.UserAuthenticationResource
 
- 
 @Path("/auth/user") public class UserAuthenticationResource extends ObjectJax-Rs resource allowing users to authenticate with username and password- Author:
- Daniel Meyer
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static WebappLoggerLOGGERstatic StringPATHprotected javax.servlet.http.HttpServletRequestrequest
 - 
Constructor SummaryConstructors Constructor Description UserAuthenticationResource()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsedoLogin(String engineName, String appName, String username, String password)javax.ws.rs.core.ResponsedoLogout(String engineName)protected javax.ws.rs.core.Responseforbidden()javax.ws.rs.core.ResponsegetAuthenticatedUser(String engineName)protected List<String>getGroupsOfUser(ProcessEngine engine, String userId)protected List<String>getTenantsOfUser(ProcessEngine engine, String userId)protected javax.ws.rs.core.ResponsenotFound()protected javax.ws.rs.core.Responseunauthorized()
 
- 
- 
- 
Field Detail- 
LOGGERprotected static final WebappLogger LOGGER 
 - 
PATHpublic static final String PATH - See Also:
- Constant Field Values
 
 - 
request@Context protected javax.servlet.http.HttpServletRequest request 
 
- 
 - 
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)
 - 
getGroupsOfUserprotected List<String> getGroupsOfUser(ProcessEngine engine, String userId) 
 - 
getTenantsOfUserprotected List<String> getTenantsOfUser(ProcessEngine engine, String userId) 
 - 
doLogout@POST @Path("/{processEngineName}/logout") public javax.ws.rs.core.Response doLogout(@PathParam("processEngineName") String engineName)
 - 
unauthorizedprotected javax.ws.rs.core.Response unauthorized() 
 - 
forbiddenprotected javax.ws.rs.core.Response forbidden() 
 - 
notFoundprotected javax.ws.rs.core.Response notFound() 
 
- 
 
-