Interface AuthenticationProvider
-
- All Known Implementing Classes:
HttpBasicAuthenticationProvider
public interface AuthenticationProviderA provider to handle the authentication ofHttpServletRequests. May implement a specific authentication scheme.- Author:
- Thorben Lindhauer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaugmentResponseByAuthenticationChallenge(javax.servlet.http.HttpServletResponse response, org.camunda.bpm.engine.ProcessEngine engine)Callback to add an authentication challenge to the response to the client.AuthenticationResultextractAuthenticatedUser(javax.servlet.http.HttpServletRequest request, org.camunda.bpm.engine.ProcessEngine engine)Checks the request for authentication.
-
-
-
Method Detail
-
extractAuthenticatedUser
AuthenticationResult extractAuthenticatedUser(javax.servlet.http.HttpServletRequest request, org.camunda.bpm.engine.ProcessEngine engine)
Checks the request for authentication. May not return null, but always anAuthenticationResultthat indicates, whether authentication was successful, and, if true, always provides the authenticated user.- Parameters:
request- the request to authenticateengine- the process engine the request addresses. May be used to authenticate against the engine's identity service.
-
augmentResponseByAuthenticationChallenge
void augmentResponseByAuthenticationChallenge(javax.servlet.http.HttpServletResponse response, org.camunda.bpm.engine.ProcessEngine engine)Callback to add an authentication challenge to the response to the client. Called in case of unsuccessful authentication.
For example, a Http Basic auth implementation may set the WWW-Authenticate header to
Basic realm="engine name".- Parameters:
request- the response to augmentengine- the process engine the request addressed. May be considered as an authentication realm to create a specific authentication challenge
-
-