Server module
An automation lives and runs in Esca Automations. What it does to a Brightspot CMS happens through a small module installed on that CMS: the server module is the CMS's half of the integration—what a Brightspot connection connects to, what the Content nodes read and write through, and what sends the CMS's content events back. Installing and looking after it is a job for whoever runs that CMS, and these pages are for them.
- Configuring the module—the Workflow Automation permission, the Automation Server settings, and what a gate in front of the CMS has to let through.
- The admin area—Admin → Esca Automations on the CMS: the webhooks and on-demand registrations the platform has pushed here, their deliveries and fires, and removing one.
- Upgrading the module—what each release added, and the order to upgrade in.
What it adds to a CMS
- An MCP endpoint, at
/cms/automation/server/api/mcp, protected by OAuth. Every content operation an automation performs on the CMS—a Content Fetch, a Content Edit's save or publish, a Content Query, a Script's look at the content model—is a call to it, made as the CMS user who authorized the connection and with exactly that user's permissions. The module brings Brightspot's OAuth authorization server with it, and checks each token on its endpoint. - Content-event webhooks. When a Content trigger on the platform watches this CMS, the platform registers a webhook here, and the CMS posts each matching publish, revision, workflow or other content event to the trigger, signed with a shared secret. A webhook delivers only content the user who registered it may read.
- On-demand registrations and the Automations panel. A Content trigger's On Demand event registers a button on the edit page of the content it matches, in an Esca Automations panel on the right rail, for editors whose role allows it. See Running from a content edit page.
- An admin area under the CMS's Admin navigation, where the webhooks and registrations the platform has pushed here are reviewed and, when their platform is gone, removed. See The admin area.
- A role permission and a plugin. The Workflow Automation permission decides which roles may run automations from a content edit page and which role the platform itself works as, and the Automation Server plugin holds the three settings that narrow who may reach the endpoint and where the CMS may post. See Configuring the module.
Installing it
The module is the com.brightspot.automation:server-cms artifact. Add it to the CMS's own build and redeploy the CMS; like any Brightspot module, its endpoint, permission and admin area are discovered from the classpath, so the dependency is the whole installation.
1implementation 'com.brightspot.automation:server-cms:<release>'
Use the release the platform runs, which its administrators can tell you, or the newest your CMS can take: the platform works with an older module and says which release a node needs when it needs a newer one. See Upgrading the module.
Installing is not sufficient on its own. Before a connection can work:
- Grant the Workflow Automation permission: Builder on the role of the account the connection will be authorized with, and Operator on the roles whose editors should see the on-demand buttons.
- Set Allowed Client Hosts on the Automation Server plugin to the platform's public hostname, and Allowed Platform Hosts to its internal hostname if the platform reaches this CMS over a private network.
- If a gate such as HTTP Basic authentication sits in front of the CMS, exempt the paths the connection calls.
Configuring the module covers each. Then someone on the platform creates a Brightspot connection pointing at the CMS's base URL and clicks Connect; endpoint discovery, client registration and the OAuth handshake run on their own. See Connecting.
What the connection reports
Once connected, the connection's form on the platform shows an Automation Plugin row with the module release this CMS runs and, when the platform uses something that release doesn't serve, the release to upgrade to. A node that needs a newer release says so on the canvas, and a run that reaches one names the release it needs instead of failing opaquely.
Related
- Brightspot connection—the platform's side of the link, and what the person connecting sees.
- Content trigger—the events the webhooks deliver, and the On Demand event behind the buttons.
- Connections—what a connection is, and what it carries into a run.