Configuring the authorizationOnlyApiServlet for direct integration

To enable SSL as part of direct integration, enable access to the authorizationOnlyApiSerlet.

About this task

To enable access to the authorizationOnlyApiServlet servlet, follow these steps:

Procedure

  1. Open the <INSTALL_DIR>/repository/eardata/smcfs/extn/ directory.
  2. If web.xml.sample does not exist, build the smcfs.ear file to generate it.
  3. Rename web.xml.sample as web.xml.
  4. Edit web.xml to include the following code:
    Note: Ensure that the id fields are unique.
    <context-param>
    <param-name>bypass.uri.X</param-name>
    <param-value>/interop/AuthorizationOnlyApiServlet</param-value>
    </context-param>
    <context-param>
    <param-name>request.validation.bypass.uri.yfc.X</param-name>
    <param-value>/interop/AuthorizationOnlyApiServlet</param-value>
    </context-param>
    <context-param>
    <param-name>sc.csrf.bypass.uri-X</param-name>
    <param-value>/interop/AuthorizationOnlyApiServlet</param-value>
    </context-param>
    <servlet id="Servlet_X">
    <servlet-name>AuthorizationOnlyApiServlet</servlet-name>
    <servlet-class>com.yantra.interop.client.AuthorizationOnlyApiServlet
    </servlet-class></servlet>
    <servlet-mapping id="ServletMapping_X">
    <servlet-name>AuthorizationOnlyApiServlet</servlet-name>
    <url-pattern>/interop/AuthorizationOnlyApiServlet</url-pattern>
    </servlet-mapping>
    whereX is a numerical value
  5. Build the EAR, which now contains the modified web.xml file.
  6. Redeploy the EAR:
    1. Open the WebSphere Application Server Administrative Console and click Applications > WebSphere enterprise applications.
    2. Select Sterling Order Management and click Update.
    3. Select Replace the entire application and Remote file system. Browse to the smcfs.ear file.
    4. Click Next and accept all defaults.
    The application is updated.