Sitecore Content Hub integration for Uniform DXP
- Overview assets from your Sitecore Content Hub account
- Use assets for Uniform Assets parameter
- A Uniform team and project
- A Sitecore Content Hub account with API access
- Go to Sitecore Content Hub => Settings => API => OAuth Applications
- Click
Create OAuth Application - Define Name, Client ID and Client Secret
- Update Redirect URL:
<VERCEL_SITE_URL>/api/auth/callback/content-hub(e.ghttps://uniform-mesh-content-hub.vercel.app/api/auth/callback/content-hub) - Click
Save
Sitecore Content Hub integration requires a few environment variables:
- CONTENT_HUB_ACCOUNT_URL - your Sitecore Content Hub instance URL (e.g.
https://your-instance.sitecorecontenthub.cloud) - NEXTAUTH_URL (optional) - your Vercel site URL (e.g.
https://content-hub.vercel.app) - NEXTAUTH_SECRET - secret key for NextAuth to sign and encrypt JWT tokens and cookies
- AUTH_APP_ID - OAuth Client ID for Sitecore Content Hub authentication
- AUTH_APP_SECRET - OAuth Client Secret for Sitecore Content Hub authentication
- Fork this repository (optional)
- Create Vercel project based on the repository
- Configure Vercel environment variables (see the list above)
- Go to Uniform dashboard => Your team => Settings => Custom Integrations
- Click
Add Integrationand copy-paste manifest frommesh-manifest.stable.json - Replace
http://localhost:4065in the manifest with previously deployed Vercel's site URL - Click
Save
To run the integration locally:
- Install dependencies:
npm install - Copy
.env.exampleto.envand define required environment variables - Start the development server:
npm run dev - Register a custom integration for your team using manifest from
mesh-manifest.local.json - Register a separate Sitecore Content Hub OAuth app, use
http://localhost:4065/api/auth/callback/content-hubfor Redirect URL