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
All authentication providers must implement the interface
org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider
, you are advised to extendorg.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
.- Override the method
public void setSession(BindingSession session)
to initialize your authentication provider. All properties that start withcmis.authProvider.
are available as parameters on the session and can be obtained by calling the methodget(String parameterName)
. - 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 theatompub
protocol there is no point in overriding the methodpublic Element getSOAPHeaders(Object portObject)
. - Set the property
cmis.authProvider.class
incmis.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.
Overview
Content Tools