2. Find the Domain URL and Generate a Secret Token

You need the following pieces of information for the connection settings of the enterprise app you create:
  • The domain URL
  • A secret token generated from the client ID and client secret
  1. Return to the identity domain overview by clicking the identity domain name in the breadcrumbs. Click Copy next to the Domain URL in Domain information and save the URL to an app where you can edit it.

    This image shows Overview in default domain.
  2. In the confidential app in OCI IAM, click the OAuth configuration under Resources.
  3. Scroll down and find the Client ID and Client secret under General Information.
  4. Copy the client ID and store it.
  5. Click Show secret and copy the secret and store it.
    This image shows Client secret screen

    The secret token is the base64 encoding of <clientID>:<clientsecret> or

    base64(<clientID>:<clientsecret>)

    The following examples show how to generate the secret token on Windows and MacOS:

    • In a Windows environment, open CMD and use this powershell command to generate base64:
      [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(‘client_id:secret’)) 
    • In MacOS, use the following:
      echo -n <clientID>:<clientsecret> | base64

      The secret token is returned. For example:

      echo -n 392357752347523923457437:3454-9853-7843-3554 | base64
      Nk0NzUyMzcyMzQ1NzMTc0NzUyMzMtNTQzNC05ODc4LTUzNQ==

      Make a note of the secret token value.