Configuring the authorizationOnlyApiServlet for direct integration
To enable SSL as part of direct integration, enable access to the authorizationOnlyApiSerlet.
About this task
Procedure
- Open the <INSTALL_DIR>/repository/eardata/smcfs/extn/ directory.
- If web.xml.sample does not exist, build the smcfs.ear file to generate it.
- Rename web.xml.sample as web.xml.
-
Edit web.xml to include the following code:
Note: Ensure that the id fields are unique.
whereX is a numerical value<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>
- Build the EAR, which now contains the modified web.xml file.
-
Redeploy the EAR:
- Open the WebSphere Application Server Administrative Console and click .
- Select Sterling Order Management and click Update.
- Select Replace the entire application and Remote file system. Browse to the smcfs.ear file.
- Click Next and accept all defaults.
The application is updated.