Class HttpBasicAuthenticationProvider

  • All Implemented Interfaces:
    AuthenticationProvider

    public class HttpBasicAuthenticationProvider
    extends Object
    implements AuthenticationProvider

    Authenticates a request against the provided process engine's identity service by applying http basic authentication.

    Author:
    Thorben Lindhauer
    • Constructor Detail

      • HttpBasicAuthenticationProvider

        public HttpBasicAuthenticationProvider()
    • Method Detail

      • isAuthenticated

        protected boolean isAuthenticated​(org.camunda.bpm.engine.ProcessEngine engine,
                                          String userName,
                                          String password)
      • augmentResponseByAuthenticationChallenge

        public void augmentResponseByAuthenticationChallenge​(javax.servlet.http.HttpServletResponse response,
                                                             org.camunda.bpm.engine.ProcessEngine engine)
        Description copied from interface: AuthenticationProvider

        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".

        Specified by:
        augmentResponseByAuthenticationChallenge in interface AuthenticationProvider
        engine - the process engine the request addressed. May be considered as an authentication realm to create a specific authentication challenge