The ECM Query Authorization Service is required and enabled by
default, when Always use this connection information option in external ECM
Server definitions is selected. However, if you would like to disable the ECM Query
Authorization Service(s) for ECM servers for all process applications, you can disable
the requirement for the ECM Query Authorization Service by adding the
enable-query-authorization-security-service
configuration setting in the
100Custom.xml files.
About this task
This configuration disables the default mandatory requirement to validate the CMIS query for all
process applications. This is meant to avoid breaking existing process applications during a
transition period, in which new snapshots that include the ECM Query Authorization
Service for ECM server with static credentials are developed.
Procedure
- Add the following configuration settings to the 100Custom.xml file
in IBM® Workflow
Center or
IBM IBM Workflow
Server.
Note: Disabling the authorization service can lead to security vulnerabilities.
<server>
<!-- enable/disable the enable query authorization security service . This is enabled by default (true) and can be disabled by setting it to false -->
<enable-query-authorization-security-service merge="replace">false</enable-query-authorization-security-service>
</server>
- To enable or disable the ECM Query Authorization Security
Service, perform one of the following options:
-
For external ECM Server definitions within your process applications and toolkits, clear the
Always use this connection information option, which causes IBM Business Automation
Workflow (IBM BPM) to
propagate each user's context to the ECM server.
Not all ECM systems can share security context with Business Automation Workflow. To determine whether you
can use this option, see Authentication scenarios.
- For external ECM Server definitions within your process applications and toolkits that has
the Always use this connection information option enabled, create a service
that helps in validating the CMIS query. Then, associate this service with the ECM server
definition. One could create unique service per each ECM server definition, that can contain
validation logic for that ECM server, or could create a single service that can have validation
logic per each ECM server.
-
Open the settings page for a process application or toolkit that contains an ECM server
definition, and go to the Servers tab. Select the ECM
server from the list, and scroll to the ECM Query Authorization Service property. Then
select New to generate an empty service with the proper interface, or select
an existing service.
The interface for this service must have the following signature in the Variables tab:
Input parameters
- inCmisQuery (
String
)
- servername (
String
)
- serverName (
String
)
- Define the logic that uses one or more of the input parameters to help in validating the
incoming CMIS query for the respective server.
The service must return a validated
CMIS query.
- Click Save or Finish Editing.
- Run a test to confirm the authorization logic that you developed is working as you
expect.
- Create a snapshot for your changes when you are ready to deploy them.