Connect with OAuth Client Credentials
Create one OAuth client for Gradial and associate it with one dedicated Content Hub service user. Assign that user the groups and policies needed for your Gradial workflows. This example shows a completed Content Hub OAuth Client form. The displayed values are examples:
Generate a Client Secret
Content Hub requires a printable ASCII client secret. A strong example is 32 cryptographically random bytes encoded as 64 hexadecimal characters. On macOS or Linux, use OpenSSL if it is installed:- In Content Hub, create the dedicated service user and assign its required groups and policies.
- Go to Manage → OAuth clients and add an OAuth client.
- Enter a descriptive Name and a unique Client ID.
- Generate a unique Client Secret with one of the methods above and enter it in Content Hub.
- Enter an HTTPS placeholder URL in the required Redirect Url field. Sitecore requires a value, but the Client Credentials grant does not use it. The URL in the screenshot is an example, not a Gradial callback endpoint. Leave Redirect URLs empty unless your Content Hub instance requires a value there too.
- Set Client Type to Client Credentials.
- Add the dedicated service user in Users. Use only one user. If you add several, Content Hub authenticates as the first user only.
- Select Is Enabled and save the OAuth client.
- In Gradial, go to Settings → Integrations and add Sitecore Content Hub. Enter the Content Hub base URL, Client ID, and Client Secret. Leave OAuth Client Credentials selected, then select Validate Connection and Create Connection.