Configuring security

You can use CICS® security to provide various levels of authorization and authentication. If you do not enable security, all work runs under the CICS default user ID. You configure security for the CICS TS Feature Pack for Dynamic Scripting V2.0 in a similar way to configuring security for the CICS Liberty JVM server.

About this task

The CICS TS Feature Pack for Dynamic Scripting V2.0 uses the Liberty JVM server security settings. To implement security, use the following procedure. Some samples are provided with the feature pack to assist you.

Procedure

  1. Follow the steps in Configuring security for a Liberty JVM server.
  2. Update web.xml in your OSGi bundle that includes web support to include the following code:
    <security-constraint id="SecurityConstraint">
       <web-resource-collection id="WebResourceCollection">
           <web-resource-name>Protected with cicsAllAuthenticated role</web-resource-name>
           <url-pattern>/*</url-pattern>
       </web-resource-collection>
       <auth-constraint id="AuthConstraint">
           <role-name>cicsAllAuthenticated</role-name>       
       </auth-constraint>
    </security-constraint>
    This code is included in the example project com.ibm.cics.server.examples.php.web, but commented out.

Results

Security is configured and implemented for your dynamic scripting applications.


config_security.html | Timestamp icon Last updated: Sunday, 4 June 2017