Configure the Primavera Unifier Connections

After installing this accelerator, you need to configure the delivered Primavera Unifier connections.

This accelerator delivers two connections that are required for connecting with Primavera Unifier through Oracle Integration:

  • Unifier basic
  • Unifier token

The first connection obtains the endpoint. The second connection sends the OAuth token, custom headers, and endpoint details to Primavera Unifier. Both connections use the REST Adapter in Oracle Integration to make API requests.

Follow the steps in the sections below to configure these connections to connect with Primavera Unifier.

Connection 1 - Using REST Adapter

The first connection to Primavera Unifier in this accelerator is labeled Unifier basic.

To configure the connection:

  1. In the Connections section, click Actions Actions icon on the connection, then select Edit.
  2. In the Properties section, do the following:
    1. In the Connection type field, select REST API Base URL.
    2. In the Connection URL field, enter the base URL of your Primavera Unifier environment, including your region (if there is one), the host server, and your specific company code.

      For example:

      https://<region>.unifier.oraclecloud.com/<companycode>

      If there is no region, the base connection URL is:

      https://unifier.oraclecloud.com/<companycode>

  3. In the Security section, do the following:
    1. In the Security Policy field, select Basic Authentication.
    2. In the User Name and Password fields, enter the login credentials of your Primavera Unifier integration user.
  4. Click Save. If prompted, click Save again.
  5. Click Test to ensure that your connection is successfully configured. In the resulting dialog box, click Test again.
    A message confirms if your test is successful.
  6. To return to the project workspace, click Go back Back icon.

Connection 2 - Using REST Adapter

The second connection to Primavera Unifier in this accelerator is labeled Unifier token.

To configure the connection:

  1. In the Connections section, click Actions Actions icon on the connection, then select Edit.
  2. In the Properties section, do the following:
    1. In the Connection type field, select REST API Base URL.
    2. In the Connection URL field, enter the base URL of your Primavera Unifier environment, including your region (if there is one), the host server, and your specific company code.

      For example:

      https://<region>.unifier.oraclecloud.com/<companycode>

      If there is no region, the base connection URL is:

      https://unifier.oraclecloud.com/<companycode>

  3. In the Security section, do the following:
    1. In the Security policy field, select OAuth Two Legged Custom Flow.
    2. In the Access Token Request field, enter the access token request in the following format:

      -X GET -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: Basic <Base64-encoded-username-and-password>" -d 'grant_type=client_credentials' https://<SERVER_URL>/ws/rest/service/v2/auth/token

      Where:

      • <Base64-encoded-username-and-password> is the Base64 encoded version of your Primavera Unifier user name and password.

        For information about how to obtain this, see Generate a Base64 Encoded User Name and Password.

      • <SERVER_URL> is the base URL of your Primavera Unifier environment, including your region (if there is one), host server, your specific company code. For example:

        https://<region>.unifier.oraclecloud.com/<companycode>

  4. Click Save. If prompted, click Save again.
  5. Click Test to ensure that your connection is successfully configured. In the resulting dialog box, click Test again.
    A message confirms if your test is successful.
  6. To return to the project workspace, click Go back Back icon.