Skip to content

Instantly share code, notes, and snippets.

@boborchard
Last active August 20, 2024 13:32
Show Gist options
  • Save boborchard/872b32eff3fa543f80d5fd4455620797 to your computer and use it in GitHub Desktop.
Save boborchard/872b32eff3fa543f80d5fd4455620797 to your computer and use it in GitHub Desktop.
CMS + CMP Publishing Configuration for Optimizely CMS Appsettings.json
"Optimizely": {
"Cmp": {
// This is the existing Optimizely.Cmp.Client block and is used for the CMP DAM integration
"Client": {
"ClientId": "",
"ClientSecret": "",
"OrgSSOId": ""
},
// v1.3.0 introduces the ability to use multiple CMP instances.
// Each mapping will contain the full context of the two-way connection between products
"MultiInstances": {
"Mappings": [
{
"Application": {
// ID of the CMS content tree node to link to CMP instance
"ApplicationId": "",
// Client ID/Secret pair used in the integration settings in
// https://cmp.optimizely.com/cloud/settings/integrations?activeTab=websiteAndFeed
"ClientId": "welcome_integration",
"ClientSecret": "welcome_integration",
// If using OptiID, set AllowActAs to true. If not, the integration will rely on
// permissions set for the above OAuth user for ALL CMP users.
"AllowActAs": true
},
"CmpInstance": {
// This ClientId/ClientSecret will be provided when you create an app in
// https://cmp.optimizely.com/cloud/settings/apps-and-webhooks/apps
"ClientId": "",
"ClientSecret": "",
// Found on https://cmp.optimizely.com/cloud/settings/organization
"OrgSSOId": ""
}
},
// If setting up multiple instances with one CMS site, the following block can be added
{
"Application": {
// ID of the CMS content tree node to link to CMP instance
"ApplicationId": "",
// Client ID/Secret pair used in the integration settings in
// https://cmp.optimizely.com/cloud/settings/integrations?activeTab=websiteAndFeed
"ClientId": "welcome_integration",
"ClientSecret": "welcome_integration",
// If using OptiID, set AllowActAs to true. If not, the integration will rely on
// permissions set for the above OAuth user for ALL CMP users.
"AllowActAs": true
},
"CmpInstance": {
// This ClientId/ClientSecret will be provided when you create an app in
// https://cmp.optimizely.com/cloud/settings/apps-and-webhooks/apps
"ClientId": "",
"ClientSecret": "",
// Found on https://cmp.optimizely.com/cloud/settings/organization
"OrgSSOId": ""
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment