Configure Basic Authentication Using Client Credentials

To configure Basic Authentication for invoking Oracle Integration APIs in an Oracle Cloud Infrastructure US Government Cloud environment, use the client ID and secret from an OAuth 2.0 client credential as the Basic Authentication credentials.

As a general Oracle Cloud Infrastructure security rule, Basic Authentication is not recommended as an authentication method, due to its inherent flaws.

Oracle Cloud Infrastructure's IAM model doesn't allow user login credentials to be used as Basic Authentication credentials. This means that login credentials (to log into the Oracle Cloud Infrastructure Console or to the Oracle Integration functional console) can't be used when invoking Oracle Integration APIs as a Basic Authentication credential. Instead, use the ID and secret from OAuth 2.0 client credentials as the Basic Authentication credentials (user name and password).

To configure OAuth client credentials as Basic Authentication credentials:
  1. Create OAuth client credentials.

    Follow the steps in Configure OAuth 2.0 Authentication Using Client Credentials on generating the client credential. Note the client ID and client secret that are generated.

    Example values:

    • Client ID: ocid1.credential.oc1..aaaaaaaaulplph33maqltcttppjoyb56jlm5asx5ikcojntvzj5mnvp25qnq
    • Client Secret: i7BKNOG:1z1A)bqaY(]F
  2. Use the OAuth credentials as the Basic Auth credentials directly in a command.
    See these examples that use values from above.
    • Using base64 encoding:

      # echo 'ocid1.credential.oc1..aaaaaaaaulplph33maqltcttppjoyb56jlm5asx5ikcojntvzj5mnvp25qnq:i7BKNOG:1z1A)bqaY(]F' | base64
      b2NpZDEuY3JlZGVudGlhbC5vYzEuLmFhYWFhYWFhdWxwbHBoMzNtYXFsdGN0dHBwam95YjU2amxtNWFzeDVpa2Nvam50dnpqNW1udnAyNXFucTppN0JLTk9HOjF6MUEpYnFhWShdRgo=
    • Returned base64 string in the Authorization header:

      curl -X GET \
        testdnsupi6usingmiglab-idaat31djvis-cpi.0001.integration.dev.ocp.oc-test.com:443/ic/api/integration/v1/connections \
        -H 'Authorization: Basic
        b2NpZDEuY3JlZGVudGlhbC5vYzEuLmFhYWFhYWFhdWxwbHBoMzNtYXFsdGN0dHBwam95YjU2amxtNWFzeDVpa2Nvam50dnpqNW1udnAyNXFucTppN0JLTk9HOjF6MUEpYnFhWShdRgo=' \
        -H 'cache-control: no-cache'