The CMIS Client component currently comes with one custom authentication provider for Json Web Token authentication. It is possible to use your own custom authentication provider, this how-to article describes how to do that.

Step-by-step gui

  1. All authentication providers must implement the interface org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider, you are advised to extend org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider

  2. Override the method public void setSession(BindingSession session) to initialize your authentication provider. All properties that start with cmis.authProvider. are available as parameters on the session and can be obtained by calling the method get(String parameterName).
  3. Override the method public Map<String, List<String>> getHTTPHeaders(String url) to set custom HTTP headers that will be used for every CMIS request. Because the runtime only supports the atompub protocol there is no point in overriding the method public Element getSOAPHeaders(Object portObject).
  4. Set the property cmis.authProvider.class in cmis.properties to the fully qualified class name of your custom authentication provider. Ensure that all required classes are on the class path for the plugin classloader.