AP Example

To determine the IDCS_SCOPE, refer to the tenant string portion (for example, rgbu-rap-cust-stg1-apcs) of your cloud service URL (for example, https://rap.retail.us-ashburn-1.ocs.oraclecloud.com/rgbu-rap-cust-stg1-apcs/rpasceui/)

Planning Cloud Service URL Patterns SCOPE

https://rap.retail.us-ashburn-1.ocs.oraclecloud.com/rgbu-rap-cust-stg1-apcs/rpasceui/

rgbu:rpas:psraf-APCS-STG1

https://rap.retail.us-ashburn-1.ocs.oraclecloud.com/rgbu-rap-cust-stg1-rpasce/rpasceui/

rgbu:rpas:psraf-RPASCE-STG1

Based on the tenant string (for example, rgbu-rap-cust-stg1-apcs), the environment index is stg1 and the application is apcs. For this combination, the IDCS scope will look like the configuration below (ensuring it is in uppercase characters only):

IDCS_SCOPE = rgbu:rpas:psraf-APCS-STG1

Create the OAuth Client in Retail Home with the following parameters:

  • App Name: AP_STG1

  • Description: FTS for AP on STG1

  • Scope 1: rgbu:rpas:psraf-AP-STG1

This generates an OAuth Client with details like this:

  • Oauth client:

  • App Name: AP_STG1

  • Client Id: AP_STG1_APPID

  • Client Secret: 6aae7818-309b-4e7a-874e-f26356a675b1

You will need to capture Client Id and Client Secret. So set the FTS script variables as follows:

BASE_URL="https://rap.retail.eu-frankfurt-1.ocs.oraclecloud.com"
TENANT="rgbu-rap-hmcd-stg1-apcs"
IDCS_URL="https://ociā€”iam-a4cbf187f29d4f41bc03fffb657d5513.identity.oraclecloud.com/oauth2/v1/token"
IDCS_CLIENTID="AP_STG1_APPID"
IDCS_CLIENTSECRET="6aae7818-309b-4e7a-874e-f26356a675b1"
IDCS_SCOPE="rgbu:rpas:psraf-AP-STG1"