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.
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:
-
In Content Hub, on the menu bar, click Manage
.
-
On the Manage page, click Settings.
-
On the Settings page, in the Search box, type CORSConfiguration and press Enter.
-
In the PortalConfiguration list, select CORSConfiguration.
-
Add the Sitecore instance URL to the list of URLs (for example,
https://www.sitecore.instance.com
). -
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.
-
In Content Hub, on the menu bar, click Manage
.
-
On the Manage page, click Settings.
-
On the Settings page, in the Search box, type Authentication and press Enter.
-
In the PortalConfiguration list, select Authentication.
-
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>" } ]
If you do not have SSO configured, basic authentication is used and the authentication_mode is set to Passive by default.
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"
.