public class ProcessEngineAuthenticationFilter extends Object implements javax.servlet.Filter
Servlet filter to plug in authentication.
Valid init-params:
| Parameter | Required | Expected value |
|---|---|---|
| "authentication-provider" | yes | An implementation of AuthenticationProvider |
| no | The expected servlet path. Should only be set, if the underlying JAX-RS application is not deployed as a servlet (e.g. Resteasy allows deployments
as a servlet filter). Value has to match what would be the HttpServletRequest.getServletPath() if it was deployed as a servlet. |
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHENTICATION_PROVIDER_PARAM |
protected AuthenticationProvider |
authenticationProvider |
| Constructor and Description |
|---|
ProcessEngineAuthenticationFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearAuthentication(org.camunda.bpm.engine.ProcessEngine engine) |
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
protected List<String> |
getGroupsOfUser(org.camunda.bpm.engine.ProcessEngine engine,
String userId) |
protected List<String> |
getTenantsOfUser(org.camunda.bpm.engine.ProcessEngine engine,
String userId) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected void |
setAuthenticatedUser(org.camunda.bpm.engine.ProcessEngine engine,
String userId) |
public static final String AUTHENTICATION_PROVIDER_PARAM
protected AuthenticationProvider authenticationProvider
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterprotected void setAuthenticatedUser(org.camunda.bpm.engine.ProcessEngine engine,
String userId)
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 void clearAuthentication(org.camunda.bpm.engine.ProcessEngine engine)
Copyright © 2017 camunda services GmbH. All rights reserved.