Configure the second C4WS instance with API Gateway

The steps in this section ensure that the second C4WS instance is ready to serve requests through API Gateway and the Enterprise Connector. This is required for the Infor OS Portal LN workspaces, widgets, and mobile apps to work.

As C4WS Administrator:

  1. Sign in to the C4WS administration landing page.
  2. Select the Advanced Settings page.
  3. Ensure MT Cloud enabled is selected.
  4. Ensure Hybrid enabled is selected.
  5. As LN UI configuration file, enter the path to the LN UI configuration file.
  6. As Keystore location, enter the path to the BaanLogin SSL keystore file governed by LN UI administration.
  7. As Keystore password, enter the applicable password.
  8. Under OAuth 1.0 settings, enter a key and secret and record the value for later use.
  9. Select Modify to confirm the changes and navigate to the landing page.
  10. Select the ERP Servers page.
  11. Select Add ERP Server and add the appropriate BaanLogin SSL environment from the available LN UI environments.

As API Gateway Administrator:

  1. Sign in to the portal, navigate to the Navigation Menu > OS > API Gateway.
  2. Under Available APIs, click the Add button.
  3. Select the Infor LN API suite template for your LN version.
  4. Keep the default values.
  5. Add a deployment:
    1. Ensure Use HTTPS is selected.
    2. Ensure Enable Enterprise Connector is selected and specify the Enterprise Connector Location.
    3. As Host Name and Port, enter the host name and port of the second C4WS instance.
    4. Leave Context blank.
    5. Under Target Endpoint Security, select OAuth 1.0a with HMAC-SHA256 and enter the key and secret from step 8 of the previous procedure as Access Key and Access Secret.
    6. Save and exit.
  6. To verify the configuration:
    1. Under Available APIs, click the card of the newly created Infor LN suite.
    2. Open the Endpoints tab.
    3. The first line should show the LN/c4ws/services/Address_v3 endpoint. Click the document icon in the Documentation column.

      The Documentation page should load a long XML file. This means that the connection is working.

      If an Error 500 is displayed, one of the most common issues is that the HTTPS certificate of the C4WS webserver is not signed with a known Certificate Authority.

  7. To resolve the Error 500 (if applicable):
    1. Go to the Navigation Menu > OS > ION.
    2. Open the left-side menu and go to Configuration > ION Service.
    3. Navigate to Configuration Files > Certificate Store.
    4. Use the Import button to upload the certificate to be trusted. To obtain this certificate, contact your system administrator. The certificates uploaded here are distributed to the linked Enterprise Connectors.