Content Toolkit supports connection via IAM app, which removes the need to pop up Chromium to authenticate. The following instructions detail how the IAM app can be created and registered for use with the Content Toolkit CLI.
-
Log in to the Oracle Cloud Console.
-
In the navigation menu, click Identity & Security.
-
Under Identity & Security, click Domains. Select the Compartment you want to work in from the List Scope drop down.
-
Click on the domain you want to use to open its Overview page.
-
Copy the Domain URL from the Domain information pane. You'll use it later.
-
In the Identity domain, click Applications.
-
Click Add application.
-
In the Add Application page, choose Confidential Application, click Launch workflow.
-
In the Add Confidential Application page, enter a name for your application and click Next.
-
Choose Configure this application as a client now.
-
Under Authorization, select Resource Owner and JWT Assertion.
-
Under Token issuance policy, choose All for Authorized Resources.
-
Choose Add resources, click Add scope
-
In Add scope pane, find your Oracle Content Management instance and click >.
-
Select the scope that has the URL with
/urn:opc:...
and then click Add -
Click Next.
-
Click Finish
-
Under General Information, copy Client ID and Client Secret. You'll need them when you register your server.
-
Under Token issuance policy, copy Scope URL.
-
Click Activate
Your IAM domain application has been created. You can now go ahead and register your server.
You will need your:
- OCM Instance URL: e.g. https://ocepm-oce1234.cec.ocp.oraclecloud.com
- Username and Password for your OCM Instance URL
- Domain URL: e.g: https://idcs-1234123412341234123412341234.identity.oraclecloud.com
- Client ID: idididididididididididididid
- Client Secret: secret-secret-secret-secret-secret
- Scope URL: e.g: https://SCOPESCOPESCOPESCOPE.cec.ocp.oraclecloud.com:443/urn:opc:cec:all
$ cd your-cec-directory
$
$ cec register-server NAME --endpoint https://ocepm-oce1234.cec.ocp.oraclecloud.com -u username -p 'password' --domainurl https://idcs-1234123412341234123412341234.identity.oraclecloud.com --clientid idididididididididididididid --clientsecret secret-secret-secret-secret-secret --scope https://SCOPESCOPESCOPESCOPE.cec.ocp.oraclecloud.com:443/urn:opc:cec:all
Test your connection
$ cec list --server NAME