Configure a Service Connection

To use the Live Experience service, configure a service connection in your DCS application to authenticate with the service and retrieve an access token.

Here’s how to configure a service connection in Visual Builder Studio:
  1. In the Navigator, click the Services icon.
  2. In the Service pane, click the Create Service Connection icon (+), and then click Service Connection.
  3. In the Create Service Connection dialog box, select Define by Endpoint.
  4. Configure the service connection by selecting these inputs:
    1. In the Method Field, select GET.
    2. In the URL field, enter https://live.oraclecloud.com/auth/apps/api/access-token/
    3. In the Action Hint field, select Get One.
  5. Click Next.
  6. In the Create Service Connection page, Overview tab, enter these values in the respective fields:
    • Service Name: lxAuthApi
    • Title: LX Auth API
  7. Click the Server tab and enter these inputs:
    1. Select the Allow anonymous access to the service connection infrastructure check box.
    2. In the Authentication for Logged-In Users and Authentication for Anonymous Users fields, select Basic and click the Edit icon in the Username field:
      1. In the Username field, enter the Client ID of the Live Experience application.
      2. In the Password field, enter the Client Secret of the Live Experience application.
      3. Click Save.
      Note: This is the same Client ID and Client Secret that you noted in the Create an Application in the Live Experience topic.
  8. Click the Request tab and enter these field values:
    1. Add these Dynamic Query Parameters:
      1. Name: nonce, Type: Number, Required (Yes)
      2. Name: state, Type: string, Required (Yes)
    2. Add these Static Query Parameters:
      1. Name: grant_type, Value: client_credentials
  9. Click the Test tab and click Send Request.

    If configured correctly, a confirmation response appears in the Body tab.

  10. Click Create.

Your new service connection appears as a LXAuthAPI tab. Close this tab for now.