Configure the Sitecore Connect for Content Hub connector

The Sitecore Connect for Content Hub connector requires that you configure Sitecore Content Hub as well as your Sitecore instances.

Note

If you are consuming public links and have whitelisted any of the stylelabs.cloud domains in the CORS configuration, you need to whitelist the sitecorecontenthub.cloud domain as well.

Configure CORS for Content Hub

You must configure CORS for Content Hub to allow incoming traffic from the Sitecore instance.

To configure CORS for Content Hub:

  1. In Content Hub, on the menu bar, click Manage Manage icon..

  2. On the Manage page, click Settings.

  3. On the Settings page, in the Search box, type CORSConfiguration and press Enter.

  4. In the PortalConfiguration list, select CORSConfiguration.

  5. Add the Sitecore instance URL to the list of URLs (for example, https://www.sitecore.instance.com).

  6. Click Save.

Configure portal settings

You need to configure the redirection setting within PortalConfiguration to allow the Sitecore instance to access and display the contents of the Sitecore DAM.

  1. In Content Hub, on the menu bar, click Manage Manage icon..

  2. On the Manage page, click Settings.

  3. On the Settings page, in the Search box, type Authentication and press Enter.

  4. In the PortalConfiguration list, select Authentication.

  5. In the right pane, under ExternalAuthenticationProviders change the authentication_mode for all SSO providers to Passive:

    RequestResponseshell
     "sitecore": [
          {
            "authentication_mode": "Passive",
            "client_id": "<ClientId>",
            "client_secret": "<ClientSecret>",
            "email_claim_type": "<ClaimTypeOverride>",
            "external_user_creation_url": "https://www.registerme.com",
            "identity_server_url": "<Url>",
            "is_enabled": true,
            "messages": {
              "signIn": "translationKey",
              "signInDescription": "translationKey",
              "signInTitle": "translationKey"
         },
           "provider_name": "Sitecore,",
           "username_claim_type": "<ClaimTypeOverride>"
         }
       ]
Note

If you do not have SSO configured, basic authentication is used and the authentication_mode is set to Passive by default.

Important

When entering translation keys in the messages configuration for the login page, do not include the T_ prefix. For example, enter "signIn": "T_translationKey" as "signIn": "translationKey".

Do you have some feedback for us?

If you have suggestions for improving this article,