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:
- In the Navigator, click the Services icon.
- In the Service pane, click the Create Service Connection icon (+), and then click Service Connection.
- In the Create Service Connection dialog box, select Define by Endpoint.
- Configure the service connection by selecting these inputs:
- In the Method Field, select GET.
- In the URL field, enter https://live.oraclecloud.com/auth/apps/api/access-token/
- In the Action Hint field, select Get One.
- Click Next.
- In the Create Service Connection page, Overview tab, enter these values in the
respective fields:
- Service Name: lxAuthApi
- Title: LX Auth API
- Click the Server tab and enter these inputs:
- Select the Allow anonymous access to the service connection infrastructure check box.
- In the Authentication for Logged-In Users and
Authentication for Anonymous Users fields,
select Basic and click the Edit
icon in the Username field:
- In the Username field, enter the Client ID of the Live Experience application.
- In the Password field, enter the Client Secret of the Live Experience application.
- 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.
- Click the Request tab and enter these field values:
- Add these Dynamic Query Parameters:
- Name: nonce, Type: Number, Required (Yes)
- Name: state, Type: string, Required (Yes)
- Add these Static Query Parameters:
- Name: grant_type, Value: client_credentials
- Add these Dynamic Query Parameters:
- Click the Test tab and click Send Request.
If configured correctly, a confirmation response appears in the Body tab.
- Click Create.
Your new service connection appears as a LXAuthAPI tab. Close this tab for now.