org.camunda.bpm.webapp.impl.security.auth
Class UserAuthenticationResource

java.lang.Object
  extended by org.camunda.bpm.webapp.impl.security.auth.UserAuthenticationResource

public class UserAuthenticationResource
extends Object

Jax-Rs resource allowing users to authenticate with username and password

Author:
Daniel Meyer

Field Summary
static String PATH
           
protected  javax.servlet.http.HttpServletRequest request
           
 
Constructor Summary
UserAuthenticationResource()
           
 
Method Summary
 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(org.camunda.bpm.engine.ProcessEngine engine, String userId)
           
protected  List<String> getTenantsOfUser(org.camunda.bpm.engine.ProcessEngine engine, String userId)
           
protected  javax.ws.rs.core.Response notFound()
           
protected  javax.ws.rs.core.Response unauthorized()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH

public static final String PATH
See Also:
Constant Field Values

request

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

UserAuthenticationResource

public UserAuthenticationResource()
Method Detail

getAuthenticatedUser

public javax.ws.rs.core.Response getAuthenticatedUser(String engineName)

doLogin

public javax.ws.rs.core.Response doLogin(String engineName,
                                         String appName,
                                         String username,
                                         String password)

getGroupsOfUser

protected List<String> getGroupsOfUser(org.camunda.bpm.engine.ProcessEngine engine,
                                       String userId)

getTenantsOfUser

protected List<String> getTenantsOfUser(org.camunda.bpm.engine.ProcessEngine engine,
                                        String userId)

doLogout

public javax.ws.rs.core.Response doLogout(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()


Copyright © 2018 camunda services GmbH. All rights reserved.