<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay Dev</title>
  <link rel="self" href="/c/blogs/rss" />
  <subtitle>Liferay Dev</subtitle>
  <id>/c/blogs/rss</id>
  <updated>2026-11-24T19:20:49Z</updated>
  <dc:date>2026-11-24T19:20:49Z</dc:date>
  <entry>
    <title>Liferay Objects Beyond the Default Database</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=127148868" />
    <author>
      <name>Himanshu Chauhan</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=127148868</id>
    <updated>2026-11-20T05:08:58Z</updated>
    <published>2026-11-20T04:29:00Z</published>
    <summary type="html">&lt;p&gt;&lt;img data-fileentryid="127147288" src="https://liferay.dev/documents/portlet_file_entry/14/Liferay+Object+Integration+Architecture.png/e5bad751-b4fb-79ec-d096-90da82fbd6b3"&gt;&lt;br&gt;
&lt;br&gt;
Liferay Objects make it easier to build applications around business data. By default, Object entries use Liferay's portal database. But what happens when the data belongs in Salesforce, SugarCRM or another external system?&lt;/p&gt;





&lt;p&gt;Liferay DXP 2026.Q4 includes a &lt;strong&gt;Storage Type&lt;/strong&gt; option for Object definitions. Depending on the available integrations and configuration, it can connect an Object to an external storage manager instead of using default storage.&lt;/p&gt;





&lt;p&gt;While exploring this capability, I also found a potential enhancement: letting administrators select an external Liferay supported database directly as an Object's storage destination.&lt;/p&gt;





&lt;h2&gt;Why Another Storage Option?&lt;/h2&gt;





&lt;p&gt;Not every application stores its data in one place. A customer-facing application may use Salesforce, while an internal business application has data in a separate database managed by another team.&lt;/p&gt;





&lt;p&gt;Liferay's external Object storage framework addresses the first part of this challenge: it lets supported Object entry operations be delegated to another system. The Q4 bundle I inspected includes Salesforce and SugarCRM managers, as well as a function-based manager for a custom external service.&lt;/p&gt;





&lt;p&gt;The gap I wanted to explore is a &lt;strong&gt;direct, administrator-approved database option&lt;/strong&gt;. Adding JDBC properties alone does not make an arbitrary database appear as an Object storage type in the inspected Q4 bundle.&lt;/p&gt;





&lt;h2&gt;What Liferay's Storage Types Do&lt;/h2&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Default storage.&lt;/strong&gt; Liferay's Object persistence manages entries in the portal database.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Salesforce.&lt;/strong&gt; The Salesforce entry manager sends supported Object entry operations to Salesforce through its API.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;SugarCRM.&lt;/strong&gt; A separate manager integrates Object entry operations with SugarCRM.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Function-based manager.&lt;/strong&gt; Liferay delegates supported entry operations to a configured external service. That service can work with an API or a database, but the service must be built and operated separately.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;These are different backends behind the same idea: select a storage type for an Object, then let the registered manager handle the operations it supports. Available options depend on the instance's configuration and active services.&lt;/p&gt;





&lt;h2&gt;Enable the Proxy Object Feature&lt;/h2&gt;





&lt;p&gt;In the Q4 instance shown below, the Storage Type selector is controlled by the &lt;strong&gt;Proxy Object&lt;/strong&gt; feature flag, &lt;code&gt;LPS-135430&lt;/code&gt;. An administrator can enable it for the virtual instance:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;Open &lt;strong&gt;Instance Settings &amp;gt; Feature Flags&lt;/strong&gt;.&lt;/li&gt;
	&lt;li&gt;Under &lt;strong&gt;Virtual Instance Scope&lt;/strong&gt;, select &lt;strong&gt;Release&lt;/strong&gt;.&lt;/li&gt;
	&lt;li&gt;Search for &lt;code&gt;135430&lt;/code&gt; or &lt;strong&gt;Proxy Object&lt;/strong&gt;.&lt;/li&gt;
	&lt;li&gt;Enable &lt;strong&gt;Proxy Object (LPS-135430)&lt;/strong&gt; if it is not already enabled.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;&lt;img data-fileentryid="127148230"
    src="https://liferay.dev/documents/portlet_file_entry/14/Screenshot+2026-11-20+094427.png/c740eb26-01a0-52e9-9c2a-98228b8a5584" style="height: auto;width: 375.792px;display: block;margin-left: auto;margin-right: auto;"&gt;&lt;/p&gt;





&lt;p&gt;&lt;em&gt;The screenshot shows Proxy Object enabled for the virtual instance.&lt;/em&gt;&lt;/p&gt;





&lt;p&gt;Feature-flag availability and support can vary by release and environment. Review the applicable Liferay guidance before changing a flag, and make the change in an appropriate test environment first.&lt;/p&gt;





&lt;h2&gt;Choose a Storage Type&lt;/h2&gt;





&lt;p&gt;After enabling the feature, open &lt;strong&gt;Control Panel &amp;gt; Objects&lt;/strong&gt; and create a new custom Object. Enter its label, plural label and Object name, then open the &lt;strong&gt;Storage Type&lt;/strong&gt; selector.&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="127148271"
    src="https://liferay.dev/documents/portlet_file_entry/14/Screenshot+2026-11-20+094503.png/59ca9a1a-f820-aa15-13c8-aea128d75c82" style="height: auto;width: 261.792px;display: block;margin-left: auto;margin-right: auto;"&gt;&lt;/p&gt;





&lt;p&gt;&lt;em&gt;The example shows Default, Salesforce and SugarCRM. Default is selected initially.&lt;/em&gt;&lt;/p&gt;





&lt;p&gt;Choose &lt;strong&gt;Default&lt;/strong&gt; to use Liferay's normal Object storage. To use Salesforce or SugarCRM, first configure the corresponding integration and its credentials. A function-based choice requires a registered and configured Object Entry Manager client extension and an external service. The choices shown and whether they can be used depend on the active managers, feature flags and instance configuration.&lt;/p&gt;





&lt;h2&gt;How It Works&lt;/h2&gt;





&lt;p&gt;The storage choice is associated with the Object definition. When an entry request is made through a supported Liferay UI or Headless API operation:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;Liferay identifies the Object definition and its selected storage type.&lt;/li&gt;
	&lt;li&gt;It looks up the registered &lt;code&gt;ObjectEntryManager&lt;/code&gt; for that storage type.&lt;/li&gt;
	&lt;li&gt;The manager handles the supported operation: the default manager uses Liferay persistence, while an external manager delegates to its configured system or service.&lt;/li&gt;
	&lt;li&gt;The manager returns the result to Liferay, which returns it to the caller.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;The manager interface includes create, list, read, update and delete operations. Filtering, sorting, pagination, permissions and other behavior depend on the selected manager and must be checked for the use case.&lt;/p&gt;





&lt;pre&gt;

 &lt;/pre&gt;





&lt;p&gt;&lt;code&gt;Liferay Object | v Selected Object entry manager | +-- Default -&amp;gt; Liferay portal database +-- Salesforce -&amp;gt; Salesforce API +-- SugarCRM -&amp;gt; SugarCRM API +-- Function -&amp;gt; Custom external service &lt;/code&gt;&lt;/p&gt;





&lt;p&gt;For example, the portal database can remain on an internal DB while a Salesforce-backed Object reads and writes supported entry data through Salesforce. Liferay's Salesforce manager sends supported requests to the Salesforce API using the configured connection and Object/field mappings. The Object definition and Liferay platform metadata remain in the portal database.&lt;/p&gt;





&lt;p&gt;This is a &lt;strong&gt;proxy Object&lt;/strong&gt;, not a complete move of Liferay data. Liferay also creates its own Object tables during publication, and related data or copies may exist in other systems such as search indexes, logs or backups.&lt;/p&gt;





&lt;h2&gt;See It in Action&lt;/h2&gt;





&lt;p&gt;Consider a customer service application where customer records already exist in Salesforce:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;Prepare the Salesforce Object, fields and integration credentials.&lt;/li&gt;
	&lt;li&gt;Configure Liferay's Salesforce connection in the applicable configuration scope.&lt;/li&gt;
	&lt;li&gt;Create a custom Object in Liferay and select &lt;strong&gt;Salesforce&lt;/strong&gt; as its storage type, when available.&lt;/li&gt;
	&lt;li&gt;Configure the Object and field external reference codes to match the Salesforce API names expected by the connector.&lt;/li&gt;
	&lt;li&gt;Publish the Object and verify supported entry operations with a controlled test record.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;The inspected Q4 Salesforce configuration includes a login URL, consumer key, consumer secret, username and password. Use a restricted integration account and store credentials securely.&lt;/p&gt;





&lt;h2&gt;A Feature Request for External Liferay Supported Databases&lt;/h2&gt;





&lt;p&gt;The Q4 bundle I inspected does not provide a built-in generic JDBC storage type that lists administrator-configured databases for individual Objects. A custom service can use an external database through the function-based manager, but that service must be built and operated separately.&lt;/p&gt;





&lt;p&gt;The proposed enhancement is to let administrators configure approved database aliases and let Object creators choose one, while keeping the portal database as the default. Object metadata, proxy limitations, security and database lifecycle behavior would need careful consideration.&lt;/p&gt;





&lt;p&gt;&lt;a href="https://discuss.liferay.com/t/allow-liferay-objects-to-store-data-in-a-selected-external-liferay-supported-database/1219"&gt;Discuss this idea in the Liferay Community -&amp;gt;&lt;/a&gt;&lt;/p&gt;





&lt;h2&gt;Get Started&lt;/h2&gt;





&lt;p&gt;To explore existing external storage in Q4, configure the integration you need, check that its storage type is available, and create a proxy Object with the appropriate external Object and field mappings.&lt;/p&gt;





&lt;p&gt;For &lt;strong&gt;Salesforce&lt;/strong&gt;, the inspected Q4 configuration includes a login URL, consumer key, consumer secret, username and password. For &lt;strong&gt;SugarCRM&lt;/strong&gt;, it includes an access-token URL, base URL, client ID, grant type, username and password. Configure the relevant Third Party settings in the applicable scope, use a restricted integration account, and protect the credentials.&lt;/p&gt;





&lt;p&gt;For a &lt;strong&gt;custom service&lt;/strong&gt;, use the function-based Object Entry Manager extension pattern. Register the client extension and its OAuth application, then implement and configure the external service and its storage behavior. Enabling the feature flag alone does not provide that service.&lt;/p&gt;





&lt;h2&gt;Before You Try It&lt;/h2&gt;





&lt;p&gt;External storage also has limitations in Q4:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Categorization, comments, friendly-URL customization, entry history and Liferay's Encrypted Object field type are restricted to default storage.&lt;/li&gt;
	&lt;li&gt;Several native entry endpoints, including numeric-ID CRUD and certain version, subscription and action operations, require the default manager.&lt;/li&gt;
	&lt;li&gt;Relationships, workflow, search, attachments and other platform features need individual compatibility checks.&lt;/li&gt;
	&lt;li&gt;External entry storage does not remove Liferay metadata or its managed Object tables from the portal database.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Any future external DB storage feature would need to define its own database support, data-isolation boundaries and recovery behavior. It should not be assumed to provide native Object feature parity.&lt;/p&gt;





&lt;h2&gt;Learn More&lt;/h2&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;a
      href="https://discuss.liferay.com/latest"&gt;Liferay Community discussions&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="https://learn.liferay.com/w/dxp/low-code/objects/integrating-objects-with-third-party-services/managing-data-from-external-systems#proxy-object-limitations"&gt;Liferay's external Object storage and proxy limitations&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;strong&gt;Version note:&lt;/strong&gt; External Object storage is available in the Q4 bundle inspected for this post; parts of the framework also existed in earlier releases. The post does not claim that the feature first appeared in Q4.&lt;/p&gt;</summary>
    <dc:creator>Himanshu Chauhan</dc:creator>
    <dc:date>2026-11-20T04:29:00Z</dc:date>
  </entry>
  <entry>
    <title>Liferay Legacy MCP</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=127144110" />
    <author>
      <name>Tony Lim</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=127144110</id>
    <updated>2026-11-19T02:24:20Z</updated>
    <published>2026-11-19T02:09:00Z</published>
    <summary type="html">&lt;p&gt;AI assistants such as Claude, GitHub Copilot and Codex can now work with Liferay DXP releases that have no MCP server of their own. &lt;strong&gt;Liferay Legacy MCP&lt;/strong&gt; is a community app from Liferay Community APAC: an MCP server that lets an AI assistant find, read and change your Liferay's content in plain language, with Liferay's own permissions, and with a preview a person confirms before anything changes.&lt;/p&gt;





&lt;p&gt;Version &lt;strong&gt;1.2.0&lt;/strong&gt; is out, and works with &lt;strong&gt;Liferay DXP 7.4 U1–U92 and 2024.Q1 to 2025.Q4&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;&lt;a href="https://liferay-community-apac.github.io/marketplace-app-docs/liferay-legacy-mcp/"&gt;&lt;strong&gt;Read the guide →&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;





&lt;h2&gt;Why Another MCP Server?&lt;/h2&gt;





&lt;p&gt;The &lt;a href="https://modelcontextprotocol.io/"&gt;Model Context Protocol&lt;/a&gt; (MCP) is how AI assistants connect to the tools and data they work with. Newer Liferay releases come with an MCP server of their own, but Liferay DXP 7.4 and 2024.Q1 to 2025.Q4 don't have one. Many sites run on these releases, and their teams want to ask an AI assistant about their content today, without an upgrade first.&lt;/p&gt;





&lt;p&gt;Liferay Legacy MCP fills that gap. It runs next to your Liferay, talks to it through its public APIs, and gives your AI assistant tools that know Liferay.&lt;/p&gt;





&lt;h2&gt;What It Does&lt;/h2&gt;





&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Content in plain language.&lt;/strong&gt; Search, read, create and update web content, documents, blogs, categories and tags, navigation menus and knowledge base articles. It also handles translations and review workflows.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Safe writes.&lt;/strong&gt; Writes are off by default. When they're on, every change is shown as a preview first, and runs only after a person confirms it. Every attempt is written to an audit log.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Least privilege.&lt;/strong&gt; The server acts as one service user, through an OAuth 2 application whose scopes limit what it can reach. Liferay enforces both.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Every API, when you need it.&lt;/strong&gt; Generic tools reach all of Liferay's Headless REST APIs and JSON web services, so the assistant isn't limited to the dedicated tools.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Page inspection with Playwright.&lt;/strong&gt; The server opens your pages in a headless Chromium. It reports their headings, links, missing image descriptions and errors, and takes screenshots, as a guest or as a view-only user.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Completely decoupled from Liferay.&lt;/strong&gt; The server is a separate container that only uses Liferay's public APIs. No code goes into Liferay, only an OAuth 2 client extension, which is configuration. A Liferay update doesn't need a new server version, and removing it leaves Liferay as it was.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Built to the MCP specification.&lt;/strong&gt; It follows the latest MCP specification (2025-11-25), and the IETF's OAuth standards for sign-in.&lt;/li&gt;
&lt;/ul&gt;





&lt;h2&gt;What's New in 1.2.0&lt;/h2&gt;





&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Users and objects without an administrator connection.&lt;/strong&gt; &lt;code&gt;list_users&lt;/code&gt; and the objects API now work through the regular connection, listing what the service user may see.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Folders.&lt;/strong&gt; Searching, listing documents and exporting can cover every folder, or only the site's root folder.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;More of the Headless APIs.&lt;/strong&gt; &lt;code&gt;read_api&lt;/code&gt; now reads operations that answer with HTML, and paths with encoded characters, such as spaces.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;See &lt;a
    href="https://liferay-community-apac.github.io/marketplace-app-docs/liferay-legacy-mcp/reference/whats-new.html"&gt;What's New&lt;/a&gt; for the full list, and &lt;a href="https://liferay-community-apac.github.io/marketplace-app-docs/liferay-legacy-mcp/installing/upgrading-and-removing.html"&gt;Upgrading and Removing&lt;/a&gt; if you're on 1.1.0.&lt;/p&gt;





&lt;h2&gt;See It in Action&lt;/h2&gt;





&lt;p&gt;Ask about your content, and the assistant answers from Liferay:&lt;/p&gt;





&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;&amp;quot;Find the three most recently modified articles in my site. Show title and modified date as a short table.&amp;quot;&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;





&lt;p&gt;Ask it to change something, and you see a preview before anything is written:&lt;/p&gt;





&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;&amp;quot;Create a draft article titled 'Q4 Webinar', announcing our product webinar on 12 December. Show me the preview first.&amp;quot;&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;









&lt;p&gt;The assistant shows the draft's title, summary and body, says that nothing has been created yet, and waits for your answer. For more ideas, see &lt;a href="https://liferay-community-apac.github.io/marketplace-app-docs/liferay-legacy-mcp/using/what-to-ask.html"&gt;What to Ask&lt;/a&gt;.&lt;/p&gt;





&lt;h2&gt;Get Started&lt;/h2&gt;





&lt;p&gt;Setting it up takes three parts: a service user in Liferay, an OAuth 2 client extension, and the server added to your AI assistant. The guide walks you through each, with pages for Claude, GitHub Copilot, Codex and other AI assistants.&lt;/p&gt;





&lt;p&gt;&lt;a href="https://liferay-community-apac.github.io/marketplace-app-docs/liferay-legacy-mcp/getting-started.html"&gt;&lt;strong&gt;Get started with the guide →&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;





&lt;h2&gt;Before You Try It&lt;/h2&gt;





&lt;p&gt;Liferay Legacy MCP is a &lt;strong&gt;community app for experimental use&lt;/strong&gt;, shared by Liferay Community APAC. It isn't a Liferay product: Liferay doesn't support it, and it comes as is. Try it on a test or development copy of your Liferay, not in production. Start with writes off, and check every preview before you confirm it.&lt;/p&gt;









&lt;p&gt;It works only with &lt;strong&gt;Liferay DXP&lt;/strong&gt;, and needs a Liferay DXP Enterprise Subscription. See &lt;a href="https://liferay-community-apac.github.io/marketplace-app-docs/liferay-legacy-mcp/reference/compatibility.html"&gt;Compatibility&lt;/a&gt; for the releases it was tested on.&lt;/p&gt;





&lt;h2&gt;Learn More&lt;/h2&gt;





&lt;ul&gt;
  &lt;li&gt;&lt;a
      href="https://liferay-community-apac.github.io/marketplace-app-docs/liferay-legacy-mcp/"&gt;Liferay Legacy MCP guide&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a
      href="https://liferay-community-apac.github.io/marketplace-app-docs/liferay-legacy-mcp/getting-started.html"&gt;Getting Started&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="https://liferay-community-apac.github.io/marketplace-apps/liferay-legacy-mcp/"&gt;Liferay Legacy MCP in the Liferay Community APAC Marketplace Apps&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Questions or feedback? Let us know in the comments.&lt;/p&gt;</summary>
    <dc:creator>Tony Lim</dc:creator>
    <dc:date>2026-11-19T02:09:00Z</dc:date>
  </entry>
  <entry>
    <title>From SharePoint to Liferay: Introducing an MCP-Assisted Migration</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=127000237" />
    <author>
      <name>Tony Lim</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=127000237</id>
    <updated>2026-10-28T01:04:23Z</updated>
    <published>2026-10-28T00:57:00Z</published>
    <summary type="html">&lt;p&gt;Moving an intranet from SharePoint to Liferay raises questions that go beyond copying files. Where should lists live? How should pages be rebuilt? What happens to metadata, users, and permissions?&lt;/p&gt;









&lt;p&gt;To explore these questions, this sample proof of concept brings together a hands-on tutorial, migration tooling, and AI-assisted discovery. The &lt;a href="https://github.com/LGSAPAC/lfrgs-sharepoint-to-liferay-migration-tutorial"&gt;SharePoint-to-Liferay Migration Tutorial&lt;/a&gt; targets SharePoint Online and Liferay DXP 2026.Q3, including the new CMS with Spaces and content structures.&lt;/p&gt;





&lt;p&gt;The aim is to give developers and architects a practical starting point for understanding the source site, reviewing migration decisions, and validating the result.&lt;/p&gt;





&lt;h2&gt;AI assistance with a repeatable migration process&lt;/h2&gt;





&lt;p&gt;One of the most interesting parts of the sample is how it divides the work.&lt;/p&gt;





&lt;p&gt;An AI agent uses &lt;strong&gt;Model Context Protocol (MCP)&lt;/strong&gt; to inspect the source, help review mappings, and check the destination. A separate Python command-line tool, &lt;strong&gt;sp2lr&lt;/strong&gt;, performs the bulk data transfer through a deterministic, idempotent loading process.&lt;/p&gt;





&lt;p&gt;The repository includes a read-only SharePoint MCP server built on Microsoft Graph and the SharePoint REST API. On the destination side, it connects to Liferay’s built-in MCP endpoint.&lt;/p&gt;





&lt;p&gt;This approach gives the agent the context needed to assist with migration decisions while keeping record copying in a process that can be inspected and rerun. Human review remains an explicit part of the workflow.&lt;/p&gt;





&lt;h2&gt;Mapping SharePoint concepts to Liferay&lt;/h2&gt;





&lt;p&gt;The sample explores several migration paths:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Modern pages&lt;/strong&gt; become Liferay content pages built with fragments and navigation.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;News posts&lt;/strong&gt; become blog postings, with an alternative mapping to a CMS content structure.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Document libraries&lt;/strong&gt; map to Documents and Media folders, files, and document types.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Managed metadata&lt;/strong&gt; maps to vocabularies and hierarchical categories.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Content-oriented lists&lt;/strong&gt;, such as FAQs and policies, map to CMS content structures in a Space.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Application-oriented lists&lt;/strong&gt;, such as requests and orders, map to Liferay Objects.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Users, groups, and permission levels&lt;/strong&gt; map to user accounts, user groups, memberships, and roles.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;The distinction between content lists and application lists is especially useful. A policy collection and a request-tracking application may both start as SharePoint lists, but their purpose should guide their destination in Liferay.&lt;/p&gt;





&lt;p&gt;The sample also addresses attachments, links, selected unique permissions, and source audit values. Created and modified dates and author information are retained in explicit fields named &lt;code&gt;spCreated&lt;/code&gt;, &lt;code&gt;spModified&lt;/code&gt;, &lt;code&gt;spCreatedBy&lt;/code&gt;, and &lt;code&gt;spModifiedBy&lt;/code&gt;. These preserve source information separately from Liferay’s native audit fields.&lt;/p&gt;





&lt;h2&gt;Extract, plan, load, and verify&lt;/h2&gt;





&lt;p&gt;The migration follows four stages:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;&lt;strong&gt;Extract:&lt;/strong&gt; Read the SharePoint site into local migration data.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Plan:&lt;/strong&gt; Generate a migration plan and review mappings and manual follow-ups.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Load:&lt;/strong&gt; Preview operations with a dry run, then load the data into Liferay.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Verify:&lt;/strong&gt; Generate a reconciliation report and perform additional checks with the agent.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;The repository provides tutorial chapters, example configuration, agent prompts, a Docker setup, and a validation checklist to support this process. The plan and dry-run outputs create useful review points before loading data into the destination.&lt;/p&gt;





&lt;h2&gt;A PoC with a defined scope&lt;/h2&gt;





&lt;p&gt;Treat this project as a sample to evaluate and adapt for your environment. The repository identifies API assumptions that must be checked against a real Liferay DXP 2026.Q3 instance, with manual follow-ups for calls that cannot be completed automatically.&lt;/p&gt;





&lt;p&gt;There are also clear boundaries. Version history, Power Automate flows, Power Apps forms, classic wiki and publishing pages, and retention or sensitivity labels are outside the sample’s migration scope. More complex web parts, workflow behavior, and page-level unique permissions require follow-up work.&lt;/p&gt;





&lt;p&gt;The repository’s scope section and validation checklist explain these boundaries in more detail.&lt;/p&gt;





&lt;h2&gt;Try the sample&lt;/h2&gt;





&lt;p&gt;Start with a small, representative SharePoint site and a non-production Liferay environment. Follow the prerequisites, configure the connections, and review the generated plan and dry-run output before loading. The supplied Docker setup requires a DXP license.&lt;/p&gt;





&lt;p&gt;If you are exploring a SharePoint-to-Liferay migration, this PoC offers a concrete way to test mappings, identify gaps, and discuss how MCP-assisted tooling could fit into your migration process.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/LGSAPAC/lfrgs-sharepoint-to-liferay-migration-tutorial"&gt;Explore the SharePoint Online to Liferay Migration Tutorial on GitHub&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;Try it with your own sample content, and share feedback or issues in the repository to help improve the approach.&lt;/p&gt;</summary>
    <dc:creator>Tony Lim</dc:creator>
    <dc:date>2026-10-28T00:57:00Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP 2026.Q4 Release Webinar</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126984294" />
    <author>
      <name>Ben Turner</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126984294</id>
    <updated>2026-10-26T05:30:14Z</updated>
    <published>2026-10-26T05:15:00Z</published>
    <summary type="html">&lt;p&gt;Hi everyone,&lt;/p&gt;





&lt;p&gt;We're just a few weeks away from the release of our final Quarterly Release for 2026 - and along with that comes the Release Webinar.&lt;/p&gt;





&lt;p&gt;With three quarters of new Product Modules, and new features across the platform, you might think we would be slowing down - but as we go into our Q4 release we still have more to bring you, including:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Enhancing your AI Hub Agents with multiple data sources&lt;/li&gt;
	&lt;li&gt;Use AI to optimize your content: write, improve, change tone, lengthen, shorten, spell &amp;amp; grammar check, categorize&lt;/li&gt;
	&lt;li&gt;New SEO/AEO Studio: find and fix issues &amp;amp; performance across your sites, and ensure they are optimized not just for search engines, but also for LLMs&lt;/li&gt;
	&lt;li&gt;one.liferay: One place for Customers and Partners to interact with Liferay to manage subscriptions, purchases and support&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;That's on top of a wave of new and improved features across the platform.&lt;/p&gt;





&lt;p&gt;Attending these sessions in person means that you'll not only hear about all the new features, but you'll also have an opportunity to participate in a live Q&amp;amp;A with our Product team.&lt;/p&gt;





&lt;p&gt;As usual, the product features part of the sessions will be recorded, and shared after the event - &lt;strong&gt;but the Q&amp;amp;A is only available when you attend live&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;The session times are as follows:&lt;/p&gt;





&lt;table border="1" cellpadding="1"
        cellspacing="1"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th
        scope="col"&gt;SESSION A - EMEA/APAC&lt;/th&gt;
			&lt;th scope="col"&gt;SESSION B - AMERICAS&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;Topic: 2026.Q4 Release Webinar&lt;/td&gt;
			&lt;td&gt;Topic: 2026.Q4 Release Webinar&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;Date: November 18, 2026&lt;br&gt;
			(Listed by Time Zone)&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Date: November 18, 2026&lt;br&gt;
			(Listed by Time Zone)&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;ul&gt;
				&lt;li&gt;08:00 - UK/IRE (GMT)&lt;/li&gt;
				&lt;li&gt;09:00 - Central Europe (CET)&lt;/li&gt;
				&lt;li&gt;12:00 - Dubai (GST)&lt;/li&gt;
				&lt;li&gt;13:30 - India (IST)&lt;/li&gt;
				&lt;li&gt;16:00 - Singapore (SGT)&lt;/li&gt;
				&lt;li&gt;17:00 - Japan (JST)&lt;/li&gt;
				&lt;li&gt;19:00 - Sydney (AEDT)&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;ul&gt;
				&lt;li&gt;1:00 pm - Los Angeles (PST)&lt;/li&gt;
				&lt;li&gt;3:00 pm - Mexico City (CST)&lt;/li&gt;
				&lt;li&gt;4:00 pm - New York (EST)&lt;/li&gt;
				&lt;li&gt;6:00 pm - Recife (BRT)&lt;/li&gt;
				&lt;li&gt;9:00 pm - UTC&lt;/li&gt;
				&lt;li&gt;8:00am - Sydney (AEDT)&lt;br&gt;
				&lt;em&gt;(November 19)&lt;/em&gt;&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;&lt;em&gt;Sessions are identical - you need only attend one.&lt;/em&gt;&lt;/p&gt;









&lt;p&gt;For more details and the registration links please visit the Release Webinar &lt;a
    href="https://www.liferay.com/web/lr/quarterly-release-webinar-q4-2026"
    rel="noopener noreferrer" target="_blank"&gt;landing page&lt;/a&gt;.&lt;/p&gt;





&lt;p&gt;Hope to see you all there!&lt;/p&gt;





&lt;p&gt;Best regards,&lt;/p&gt;





&lt;p&gt;Ben.&lt;/p&gt;</summary>
    <dc:creator>Ben Turner</dc:creator>
    <dc:date>2026-10-26T05:15:00Z</dc:date>
  </entry>
  <entry>
    <title>Deploying Client extension to Multiple Virtual Instances (On-Prem): The "easy" way?</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126953397" />
    <author>
      <name>Daniel Carrillo Broeder</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126953397</id>
    <updated>2026-10-21T08:17:24Z</updated>
    <published>2026-10-21T08:04:00Z</published>
    <summary type="html">&lt;h1&gt;Introduction&lt;/h1&gt;





&lt;p&gt;A client extension built with Liferay Workspace is registered in &lt;strong&gt;one&lt;/strong&gt; virtual instance. That is fine for a single portal, but on-premises installations often run several virtual instances, and the same environment (development, staging, production) may have different instances, or new ones created over time.&lt;/p&gt;





&lt;p&gt;In &lt;a href="https://learn.liferay.com/kb-article/how-to-set-up-client-extension-to-be-used-in-multiple-on-premise-instances"&gt;How to set up client extension to be used in multiple On-Premise instances&lt;/a&gt;, three ways are described to reuse the same client extension in several instances. This blog post is an &lt;strong&gt;unofficial extension&lt;/strong&gt; of that article: a Liferay Workspace customization that automates those three options from a list of instances per environment, so that adding an instance or switching environments does not mean editing YAML files or building zips by hand.&lt;/p&gt;





&lt;div class="overflow-auto portlet-msg-alert"&gt;&lt;strong&gt;Disclaimer&lt;/strong&gt;: This customization is not supported by Liferay. It uses internal classes of the Liferay Workspace Gradle plugin, so review it before using it and again after upgrading Liferay Workspace.&lt;/div&gt;





&lt;h2&gt; &lt;/h2&gt;





&lt;h2&gt;Getting the instances of an installation&lt;/h2&gt;





&lt;p&gt;Although several methods exist for getting instance webIds, we will focus on this one because it easily integrates into CI/CD automation. Liferay exposes the virtual instances of an installation through the &lt;code&gt;headless-portal-instances&lt;/code&gt; API:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;GET /o/headless-portal-instances/v1.0/portal-instances?skipDefault=true&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;This endpoint is only available in the &lt;strong&gt;default instance&lt;/strong&gt;, for a user that is an administrator of that instance. The customization uses it to keep the list of instances of each environment up to date.&lt;/p&gt;





&lt;p&gt;An OAuth 2 application should be created in the default instance to be used from a build&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Authorization type:&lt;/strong&gt; Client Credentials.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Client credentials user:&lt;/strong&gt; an administrator of the default instance.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Scope:&lt;/strong&gt; &lt;code&gt;Liferay.Headless.Portal.Instances.everything.read&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Then expose its credentials through two environment variables, so they do not end up in your repository:&lt;/p&gt;





&lt;table&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;Variable&lt;/th&gt;
			&lt;th&gt;Explanation&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;LIFERAY_OAUTH2_CLIENT_ID&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;Client ID of the OAuth 2 application.&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;LIFERAY_OAUTH2_CLIENT_SECRET&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;Client secret of the OAuth 2 application.&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;This will be used to automatically extract instances from the Liferay workspace, but it's completely &lt;strong&gt;optional&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;h1&gt;Hands-on&lt;/h1&gt;





&lt;p&gt;&lt;strong&gt;The code is available on GitHub: &lt;a href="https://github.com/dcarrillolf/lrws-multicx"&gt;github.com/dcarrillolf/lrws-multicx&lt;/a&gt;. &lt;/strong&gt;It is a regular Liferay Workspace for 2026.Q1 with a some local Gradle plugins in &lt;code&gt;buildSrc&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;The different plugins are applied automatically to every project under &lt;code&gt;client-extensions/&lt;/code&gt; so no other customization is required to use them. This means that your &lt;code&gt;client-extension.yaml&lt;/code&gt; files and sources stay untouched, and only the generated output (zips, configuration files and build folders) reflects the target instances. Apart from the properties described below, no other change is needed.&lt;/p&gt;





&lt;h2&gt; &lt;/h2&gt;





&lt;h2&gt;Initial setup&lt;/h2&gt;





&lt;h3&gt;Describe your environments&lt;/h3&gt;





&lt;p&gt;In &lt;code&gt;gradle.properties&lt;/code&gt;, set the URL of the default instance of each environment and its list of instances. The environment name matches the &lt;code&gt;configs/&amp;lt;env&amp;gt;&lt;/code&gt; folders of the workspace if you use the &lt;em&gt;Option 3&lt;/em&gt;:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;cx.build.custom.env.url[dev]=http://localhost:8080
cx.build.custom.env.instances[dev]=default,portal2.example.com,portal3.example.com&lt;/code&gt;&lt;/pre&gt;





&lt;div class="overflow-auto portlet-msg-info"&gt;&lt;strong&gt;Only cx.build.custom.env.instances[&amp;lt;env&amp;gt;] is required&lt;/strong&gt;: You can manually set up your instance webIds without the need of retrieving the webIds through the Oauth2 app and headless API.&lt;/div&gt;





&lt;h3&gt;(Optional) Retrieve the instances automatically from the portal&lt;/h3&gt;





&lt;p&gt;If you have the URL and the OAuth 2 credentials, you don't need to write the list by hand. The task &lt;code&gt;retrieveCXInstances&lt;/code&gt; displays all webIds for you:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;export LIFERAY_OAUTH2_CLIENT_ID=&amp;lt;client-id&amp;gt; LIFERAY_OAUTH2_CLIENT_SECRET=&amp;lt;client-secret&amp;gt;
./gradlew retrieveCXInstances -Pcx.custom.deploy.env=dev&lt;/code&gt;&lt;/pre&gt;





&lt;pre&gt;
&lt;code&gt;[cxinstances] http://localhost:8080
[cxinstances] Current: cx.build.custom.env.instances[dev]=default,portal2.example.com,portal3.example.com
[cxinstances] Portal:  cx.build.custom.env.instances[dev]=default,portal2.example.com
[cxinstances] Run with -Pcx.custom.instances.apply=true to update gradle.properties&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;&lt;strong&gt;Add &lt;code&gt;-Pcx.custom.instances.apply=true&lt;/code&gt; to automatically update &lt;/strong&gt;the list to &lt;code&gt;gradle.properties&lt;/code&gt;.&lt;/p&gt;





&lt;h2&gt; &lt;/h2&gt;





&lt;h2&gt;Build and deploy&lt;/h2&gt;





&lt;p&gt;The three options of the original article become three ways of building. All of them take the list of instances from &lt;code&gt;cx.build.custom.env.instances[&amp;lt;env&amp;gt;]&lt;/code&gt; (&lt;code&gt;default&lt;/code&gt; in that list stands for the default instance).&lt;/p&gt;





&lt;h3&gt;Option 1: One zip per instance (official recommendation)&lt;/h3&gt;





&lt;p&gt;This is option 3 of the &lt;a
    href="https://learn.liferay.com/kb-article/how-to-set-up-client-extension-to-be-used-in-multiple-on-premise-instances"
    rel="noopener noreferrer" target="_blank"&gt;original article&lt;/a&gt;. Liferay Workspace binds a client extension to an instance with the &lt;code&gt;liferay.virtual.instance.id&lt;/code&gt; property, but that property only takes one value per Gradle run. &lt;strong&gt;The customization&lt;/strong&gt; &lt;strong&gt;runs Gradle once per instance, in sequence, so you don't have to&lt;/strong&gt;:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;blade gw build -Pcx.custom.deploy.env=dev -Pcx.custom.one-per-instance=true
blade gw deploy -Pcx.custom.deploy.env=dev -Pcx.custom.one-per-instance=true&lt;/code&gt;
&lt;/pre&gt;





&lt;p&gt;&lt;strong&gt;What to expect:&lt;/strong&gt;&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;dist/&lt;/code&gt; contains &lt;code&gt;&amp;lt;project&amp;gt;.zip&lt;/code&gt; for the default instance and one &lt;code&gt;&amp;lt;project&amp;gt;_&amp;lt;webId&amp;gt;.zip&lt;/code&gt; per instance.&lt;/li&gt;
	&lt;li&gt;Each zip is a separate bundle with its own web context (&lt;code&gt;/o/&amp;lt;project&amp;gt;_&amp;lt;webId&amp;gt;/&lt;/code&gt;), so all of them can be deployed side by side.&lt;/li&gt;
	&lt;li&gt;The build takes one Gradle run per instance, so it gets slower as the number of instances grows.&lt;/li&gt;
	&lt;li&gt;It relies only on current supported mechanisms, which is why it is the recommended option.&lt;/li&gt;
&lt;/ul&gt;





&lt;h3&gt; &lt;/h3&gt;





&lt;h3&gt;Option 2: One zip, one block per instance&lt;/h3&gt;





&lt;p&gt;This is option 1 of the &lt;a
    href="https://learn.liferay.com/kb-article/how-to-set-up-client-extension-to-be-used-in-multiple-on-premise-instances"
    rel="noopener noreferrer" target="_blank"&gt;original article&lt;/a&gt;: a &lt;code&gt;client-extension.yaml&lt;/code&gt; with one block per instance, each with its own &lt;code&gt;dxp.lxc.liferay.com.virtualInstanceId&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Instead of maintaining those blocks by hand, the customization generates them at build time and leaves &lt;code&gt;client-extension.yaml&lt;/code&gt; untouched:&lt;/strong&gt;&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;blade gw build -Pcx.custom.deploy.env=dev
blade gw deploy -Pcx.custom.deploy.env=dev&lt;/code&gt;
&lt;/pre&gt;





&lt;p&gt;&lt;strong&gt;What to expect:&lt;/strong&gt;&lt;/p&gt;









&lt;ul&gt;
	&lt;li&gt;A single zip per environment, with one copy of each block per instance, named &lt;code&gt;&amp;lt;id&amp;gt;--&amp;lt;webId&amp;gt;&lt;/code&gt;.&lt;/li&gt;
	&lt;li&gt;The static resources are deployed once and shared by all instances (&lt;code&gt;/o/&amp;lt;project&amp;gt;/&lt;/code&gt;).&lt;/li&gt;
	&lt;li&gt;The effective &lt;em&gt;YAML&lt;/em&gt; is written to &lt;code&gt;build/cx-multi-instance/client-extension.&amp;lt;env&amp;gt;.yaml&lt;/code&gt;, so you can check what went into the zip.&lt;/li&gt;
	&lt;li&gt;Take into account that &lt;code&gt;dxp.lxc.liferay.com.virtualInstanceId&lt;/code&gt; is &lt;a
      href="https://learn.liferay.com/w/dxp/development/client-extensions/working-with-client-extensions#:~:text=This%20deprecated%20property%20sets%20the%20virtual%20instance%20ID%20to%20deploy"
      rel="noopener noreferrer" target="_blank"&gt;deprecated&lt;/a&gt;. &lt;strong&gt;Although it still works in 2026.Q1, but it might be removed in a future release&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;





&lt;h3&gt; &lt;/h3&gt;





&lt;h3&gt;Option 3: OSGi configuration files&lt;/h3&gt;





&lt;p&gt;This is option 2 of the &lt;a
    href="https://learn.liferay.com/kb-article/how-to-set-up-client-extension-to-be-used-in-multiple-on-premise-instances"
    rel="noopener noreferrer" target="_blank"&gt;original article&lt;/a&gt;: Deploy the default instance zip once, and register the client extension in every other instance with an OSGi configuration file that points to the same resources. &lt;strong&gt;The customization generates those OSGi configuration files automatically into osgi/configs&lt;/strong&gt;:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;blade gw generateCXConfig -Pcx.custom.deploy.env=dev&lt;/code&gt;&lt;/pre&gt;





&lt;div
    class="overflow-auto portlet-msg-alert"&gt;&lt;strong&gt;Important&lt;/strong&gt;: This customization relies on configuration templates, so not all types of extensions are covered (check the directly samples from the &lt;a
    href="https://github.com/dcarrillolf/lrws-multicx/tree/main/client-extensions"
    rel="noopener noreferrer" target="_blank"&gt;repository&lt;/a&gt;). Also, some Client extension yaml parameters could be missing and won't applied to the final OSGi config, requiring additional customization.&lt;/div&gt;





&lt;p&gt;This action does not build the default client extension, that should be created without any params:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;blade gw build
blade gw deploy&lt;/code&gt;
&lt;/pre&gt;





&lt;p&gt;&lt;strong&gt;What to expect:&lt;/strong&gt;&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;One file per instance in &lt;code&gt;configs/&amp;lt;env&amp;gt;/osgi/configs&lt;/code&gt;, named &lt;code&gt;com.liferay.client.extension.type.configuration.CETConfiguration~&amp;lt;id&amp;gt;--&amp;lt;webId&amp;gt;.config&lt;/code&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;The generated files contains the hashed file names of the build they come from&lt;/strong&gt;, so configurations should be regenerated and deployed with every new version.&lt;/li&gt;
&lt;/ul&gt;





&lt;h3&gt; &lt;/h3&gt;





&lt;h2&gt;Conclusion and next steps &lt;/h2&gt;





&lt;p&gt;If you are wondering which one should you use:&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Option 1&lt;/strong&gt; is the officially recommended approach, because it only relies on the supported &lt;em&gt;liferay.virtual.instance.id&lt;/em&gt; property, but generates N zip files that should be validated, maintained and deployed.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Options 2 &lt;/strong&gt;is a currently (&lt;em&gt;2026.q1&lt;/em&gt;) valid alternative that could help to simplify deployments as only one zip file is deployed, similar to traditional Liferay developments.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Option 3 &lt;/strong&gt;This option could be the best for generating a single '&lt;em&gt;instance-agnostic&lt;/em&gt;' zip file that can undergo a single validation and certification process. However, this approach may have not covered limitations and requires deploying N additional configurations for every version.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Keep in mid this is &lt;strong&gt;custom, unofficial approach&lt;/strong&gt;, built on top of Liferay Workspace to try to make &amp;quot;life easier&amp;quot; when the same client extensions have to reach many virtual instances.&lt;/p&gt;









&lt;p&gt;Deploying client extensions across multiple virtual instances is currently on Liferay's radar, with re-evaluation planned for &lt;em&gt;2027. &lt;/em&gt;&lt;strong&gt;Keep an eye on the official documentation and ticket &lt;a
      href="https://liferay.atlassian.net/browse/LPD-110276"
      rel="noopener noreferrer" target="_blank"&gt;LPD-110276&lt;/a&gt; (including &lt;em&gt;child work items&lt;/em&gt;). for upcoming updates.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;Until then, I hope this saves you some time.&lt;/p&gt;</summary>
    <dc:creator>Daniel Carrillo Broeder</dc:creator>
    <dc:date>2026-10-21T08:04:00Z</dc:date>
  </entry>
  <entry>
    <title>Why Your Frontend Client Extension Assets Might Be Served Uncompressed</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126948236" />
    <author>
      <name>Maurice Sepe</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126948236</id>
    <updated>2026-11-11T00:18:48Z</updated>
    <published>2026-10-20T02:12:00Z</published>
    <summary type="html">&lt;h2&gt;Introduction&lt;/h2&gt;





&lt;p&gt;PageSpeed Insights is very good at telling you what is wrong. It is less good at telling you why. We recently worked through a case where a Liferay SaaS site kept getting flagged for uncompressed CSS from its frontend client extensions, even though compression was switched on the whole time.&lt;/p&gt;





&lt;p&gt;The short version: older &lt;code&gt;liferay/caddy&lt;/code&gt; base images only send &lt;code&gt;Vary: Accept-Encoding&lt;/code&gt; when they actually compress a response. Put a CDN in front of that, and a single uncompressed response can get cached and served to every visitor for an hour at a time.&lt;/p&gt;





&lt;p&gt;The fix is a rebuild, a redeploy and a CDN cache clear. The rest of this post covers how we found it, how to check your own client extensions, and which workarounds to skip.&lt;/p&gt;





&lt;h2&gt;The Symptom&lt;/h2&gt;





&lt;p&gt;The site used two frontend client extensions: a &lt;code&gt;themeCSS&lt;/code&gt; CX and a &lt;code&gt;customElement&lt;/code&gt; CX. PageSpeed reported that their static assets were served without compression, and the byte counts agreed.&lt;/p&gt;





&lt;p&gt;The theme’s &lt;code&gt;clay.css&lt;/code&gt; arrived at 731,706 bytes. When the origin gzips it, the same file is 94,179 bytes. That’s almost 8x more data than necessary on a render-blocking stylesheet, and &lt;code&gt;main.css&lt;/code&gt; showed the same pattern (177,053 bytes versus 26,454).&lt;/p&gt;





&lt;p&gt;The first question was whether compression could be enabled in &lt;code&gt;LCP.json&lt;/code&gt; or &lt;code&gt;client-extension.yaml&lt;/code&gt;. It turned out compression had never been off.&lt;/p&gt;





&lt;h2&gt;How frontend client extensions are served on Liferay&lt;/h2&gt;





&lt;p&gt;Each frontend CX is deployed as its own small service. The container runs Caddy from the &lt;code&gt;liferay/caddy&lt;/code&gt; image, and the Dockerfile that Liferay Workspace generates starts with &lt;code&gt;FROM liferay/caddy:latest&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;In front of that container sits Google Cloud CDN. The default &lt;code&gt;LCP.json&lt;/code&gt; for a frontend CX sets &lt;code&gt;loadBalancer.cdn: true&lt;/code&gt;, so the CDN is on in every environment except dev. You can see it in the response headers as &lt;code&gt;via: 1.1 google&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;Caddy does the compressing (gzip only, no Brotli or zstd), and the CDN caches what Caddy returns. In this case assets were cached with &lt;code&gt;max-age=3600&lt;/code&gt;. Both layers were doing their jobs; the problem was in what they told each other.&lt;/p&gt;





&lt;h2&gt;What’s actually going on&lt;/h2&gt;





&lt;p&gt;A shared cache decides whether it can reuse a stored response by looking at the URL plus any request headers named in &lt;code&gt;Vary&lt;/code&gt;. If a server can return gzip or plain bytes for the same URL, it has to send &lt;code&gt;Vary: Accept-Encoding&lt;/code&gt; on both variants. Otherwise the cache can’t tell that the plain version was only meant for clients that didn’t ask for gzip.&lt;/p&gt;





&lt;p&gt;On the affected client extensions, the origin answered like this:&lt;/p&gt;





&lt;table border="1" cellpadding="6" cellspacing="0"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;Request&lt;/th&gt;
			&lt;th&gt;&lt;code&gt;Content-Encoding&lt;/code&gt;&lt;/th&gt;
			&lt;th&gt;&lt;code&gt;Vary&lt;/code&gt;&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;GET with &lt;code&gt;Accept-Encoding: gzip&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;gzip&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;Origin&lt;/code&gt;, &lt;code&gt;Accept-Encoding&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;GET without &lt;code&gt;Accept-Encoding&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;none (identity)&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;Origin&lt;/code&gt; only&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The identity response says nothing about encoding, so Cloud CDN treats it as valid for every client. One request without &lt;code&gt;Accept-Encoding&lt;/code&gt; that reaches the origin replaces the cached entry, and every browser gets the full-size file until it expires. We never pinned down what was sending those requests in production; a crawler, monitor or script is enough.&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126948246" src="https://liferay.dev/documents/portlet_file_entry/14/cdn-cache-sequence.png/77be9d3f-5b08-b11f-f979-524c5cbb8205"&gt;&lt;/p&gt;





&lt;p&gt;&lt;em&gt;After step 2, every gzip-capable browser gets the step 3 result until the entry expires or someone clears the CDN cache.&lt;/em&gt;&lt;/p&gt;









&lt;p&gt;The root cause is in Caddy itself. The older &lt;code&gt;liferay/caddy&lt;/code&gt; images shipped Caddy 2.5.0, whose file server only added &lt;code&gt;Vary: Accept-Encoding&lt;/code&gt; when it actually compressed. Caddy changed this in 2.8.0 so the header is always sent, letting caches build a reliable key (&lt;a
    href="https://github.com/caddyserver/caddy/issues/5849"
    rel="noopener noreferrer" target="_blank"&gt;caddyserver/caddy#5849&lt;/a&gt;).&lt;/p&gt;





&lt;p&gt;&lt;code&gt;liferay/caddy&lt;/code&gt; images from 10.0.84 onward include the fix. DXP’s own web server (nginx) is not affected.&lt;/p&gt;





&lt;h2&gt;Check your own Client Extensions&lt;/h2&gt;





&lt;p&gt;Two rules make this reproducible. Use GET, not HEAD: the origin never compresses HEAD responses, so &lt;code&gt;curl -I&lt;/code&gt; won’t show any difference. And add a random query string (&lt;code&gt;?cb=&amp;lt;random&amp;gt;&lt;/code&gt;) whenever you want a guaranteed cache miss, so the request reaches the origin.&lt;/p&gt;





&lt;p&gt;Replace the URL below with a CSS or JS asset from one of your own frontend CXs.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Test 1: origin versus CDN for the same request.&lt;/strong&gt; Both requests ask for gzip. The first uses a new URL and reaches the origin; the second uses the real URL and is answered by the CDN.&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;U=https://&amp;lt;your-cx-host&amp;gt;.lfr.cloud/css/main.css

echo -n &amp;quot;Origin (new URL): &amp;quot;; curl -s -o /dev/null -w '%{size_download} bytes\n' -H &amp;quot;Accept-Encoding: gzip&amp;quot; &amp;quot;$U?cb=$RANDOM$RANDOM&amp;quot;

echo -n &amp;quot;CDN (real URL):   &amp;quot;; curl -s -o /dev/null -w '%{size_download} bytes\n' -H &amp;quot;Accept-Encoding: gzip&amp;quot; &amp;quot;$U&amp;quot;&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;On an affected CX, the CDN number is several times the origin number:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;Origin (new URL): 94179 bytes
CDN (real URL):   731706 bytes&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;&lt;strong&gt;Test 2: one plain request poisons the cache entry.&lt;/strong&gt; On a single new URL, send a gzip request, then a request without &lt;code&gt;Accept-Encoding&lt;/code&gt;, then a gzip request again.&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;U=https://&amp;lt;your-cx-host&amp;gt;.lfr.cloud/css/main.css
K=test$RANDOM$RANDOM

echo -n &amp;quot;1) gzip:            &amp;quot;; curl -s -o /dev/null -w '%{size_download} bytes\n' -H &amp;quot;Accept-Encoding: gzip&amp;quot; &amp;quot;$U?cb=$K&amp;quot;

echo -n &amp;quot;2) no compression:  &amp;quot;; curl -s -o /dev/null -w '%{size_download} bytes\n' &amp;quot;$U?cb=$K&amp;quot;

echo -n &amp;quot;3) gzip again:      &amp;quot;; curl -s -o /dev/null -w '%{size_download} bytes\n' -H &amp;quot;Accept-Encoding: gzip&amp;quot; &amp;quot;$U?cb=$K&amp;quot;&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;If request 3 returns the full uncompressed size, you’re affected:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;1) gzip:            94179 bytes
2) no compression:  731706 bytes
3) gzip again:      731706 bytes&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;&lt;strong&gt;Quick header check.&lt;/strong&gt; You can also look at &lt;code&gt;Vary&lt;/code&gt; directly on an uncompressed response from the origin. If it doesn’t include &lt;code&gt;Accept-Encoding&lt;/code&gt;, the CX is running on an older image.&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;curl -s -D - -o /dev/null &amp;quot;$U?cb=$RANDOM$RANDOM&amp;quot; | grep -i '^vary'&lt;/code&gt;&lt;/pre&gt;





&lt;h2&gt;The Fix&lt;/h2&gt;





&lt;p&gt;The fix is already in the base image, so there’s nothing to configure and no patch to request. You only need to get your CXs onto a current &lt;code&gt;liferay/caddy&lt;/code&gt; image.&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;&lt;strong&gt;Rebuild and redeploy each frontend CX.&lt;/strong&gt; The generated Dockerfile uses &lt;code&gt;FROM liferay/caddy:latest&lt;/code&gt;, so a fresh build picks up the fixed image. Do UAT first, then production.

	&lt;ul&gt;
		&lt;li&gt;If your project ships its own Dockerfile, check that it doesn’t pin a &lt;code&gt;liferay/caddy&lt;/code&gt; tag older than 10.0.84.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Clear the CDN cache.&lt;/strong&gt; In the Liferay Cloud console, go to Network and use Clear CDN Cache. Allow up to 30 minutes for it to take effect.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Verify.&lt;/strong&gt; Run the quick header check again: an uncompressed response should now return &lt;code&gt;Vary: Origin, Accept-Encoding&lt;/code&gt;. Request 3 in Test 2 should come back at the compressed size.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;If you haven’t rebuilt a frontend CX in a while, it’s worth doing this even without a PageSpeed complaint. The bug only shows up when a plain request happens to land on a cache miss, so it can come and go.&lt;/p&gt;





&lt;h2&gt;Workarounds we don’t recommend&lt;/h2&gt;





&lt;p&gt;Before the root cause was confirmed, a couple of other options came up. Both technically work, and both are worse than a rebuild.&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Setting &lt;code&gt;loadBalancer.cdn: false&lt;/code&gt; in &lt;code&gt;LCP.json&lt;/code&gt;.&lt;/strong&gt; With no shared cache, there’s nothing to poison. But the CX loses edge caching, and every asset request goes to a single small container (0.05 CPU and 50 MB by default).&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Shipping a custom Dockerfile or Caddy config to force the header.&lt;/strong&gt; Liferay Workspace does use a project-level Dockerfile when one is present, so this is possible. It’s also one more thing to maintain, and the stock image already does the right thing.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Avoid changing CDN or load balancer settings outside your project configuration, too. Nothing tracks those changes, and they can disappear when the service is recreated.&lt;/p&gt;





&lt;h2&gt;Wrapping up&lt;/h2&gt;





&lt;p&gt;A few things from this one are worth carrying into other investigations:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;A client extension is only as current as its last build.&lt;/strong&gt; Rebuilding picks up base image fixes even when your own code hasn’t changed.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Measure compression with GET, never HEAD.&lt;/strong&gt; Add a cache-busting query string when you want to see what the origin really returns.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Check &lt;code&gt;Vary&lt;/code&gt; on every variant, not just the compressed one.&lt;/strong&gt; When a CDN sits in front of anything that negotiates content, the uncompressed response is the one that bites.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;If your PageSpeed report flags uncompressed assets from a frontend CX, try the tests above before touching any configuration. There’s a good chance a rebuild is all you need.&lt;/p&gt;</summary>
    <dc:creator>Maurice Sepe</dc:creator>
    <dc:date>2026-10-20T02:12:00Z</dc:date>
  </entry>
  <entry>
    <title>Building a Liferay Environment by Talking to It: Dummy Factory Meets the DXP MCP Server</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126887111" />
    <author>
      <name>Yasuyuki Takeo</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126887111</id>
    <updated>2026-10-19T05:12:45Z</updated>
    <published>2026-10-10T20:30:00Z</published>
    <summary type="html">&lt;p&gt;Reproducing a customer issue rarely fails because of the bug.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;It fails because of the environment.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;When I was helping the Liferay Support team, the ticket would say something like &amp;quot;the page breaks when a site has a few hundred web contents across several sites, with categories, and users in organizations.&amp;quot; The fix might take an hour. Building the environment to see the problem took the rest of the day.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;That is why Dummy Factory exists. And with Liferay DXP 2026.Q3, there is a new way to drive it: you just ask.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;## Liferay DXP Is Now an MCP Server&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;If you have not seen it yet, David Nebinger already wrote a great introduction in [Liferay DXP Is an MCP Server. Now What?](https://liferay.dev/b/liferay-dxp-is-an-mcp-server-now-what). I will not repeat all of it here, but the short version is this.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Liferay ships a **Model Context Protocol (MCP) Server**. It has been around as a beta feature since 2025.Q4, and in **2026.Q3 it was promoted to a release feature**. The [2026.Q3 feature flag changes](https://learn.liferay.com/w/dxp/self-hosted-installation-and-upgrades/upgrading-liferay/deprecations-and-breaking-changes-reference/2026-deprecations-and-breaking-changes/2026-q3-default-setting-and-feature-flag-changes) list `feature.flag.LPD-63311.type` moving from `beta` to `release`.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;A release flag is still off by default, so per the [official documentation](https://learn.liferay.com/w/dxp/ai/using-liferay-as-an-mcp-server) there are two switches:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;1. Enable the **LPD-63311** feature flag.&lt;/p&gt;





&lt;p&gt;2. Go to **Control Panel → Instance Settings → Platform → MCP Server** and check **Enabled**.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;After that, `/o/mcp` answers MCP requests over Streamable HTTP, using Basic Auth or an OAuth 2.0 bearer token, and the client acts with that user's permissions. If the flag or the configuration is off, you get a 404.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Two details are worth noticing. The setting is **per virtual instance** and disabled by default, so each instance you want to talk to has to be switched on separately. And OAuth 2.0 discovery through `/o/.well-known/oauth-protected-resource/mcp` needs a second release flag, **LPD-63415**. Basic Auth works without it, which is all I needed for a local container.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The documentation also has ready-made client configurations for GitHub Copilot, Cursor, Claude Desktop and Gemini CLI, plus instructions for the official MCP Inspector, which is the first thing I would reach for when a tool does not show up.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Dummy Factory 2.0 targets **DXP 2026.Q3.6**, so this was the moment to try it.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;## Wait, What Is a Dummy Factory Workflow?&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Dummy Factory was developed as a support tool for generating dummy data. It started with one form per entity: create 50 users, create 10 sites, create 200 web contents.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;That works fine for one entity type. It does not work well for a realistic environment.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;A realistic environment is a chain. You create a site, then pages in that site, then web contents in that site, then categories, then message board threads, then replies to those threads. Every step needs an id from a previous step. Doing it with forms means copying ids between browser tabs.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;So 2.0 added **workflows**. A workflow is one JSON document that runs several operations in order, and ids flow from step to step:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;```json&lt;/p&gt;





&lt;p&gt;{&lt;/p&gt;





&lt;p&gt;&amp;quot;schemaVersion&amp;quot;: &amp;quot;1.0&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;workflowId&amp;quot;: &amp;quot;sample-site-and-page&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;input&amp;quot;: {},&lt;/p&gt;





&lt;p&gt;&amp;quot;steps&amp;quot;: [&lt;/p&gt;





&lt;p&gt;{&lt;/p&gt;





&lt;p&gt;&amp;quot;id&amp;quot;: &amp;quot;createSite&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;operation&amp;quot;: &amp;quot;site.create&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;idempotencyKey&amp;quot;: &amp;quot;sample-site-1&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;onError&amp;quot;: { &amp;quot;policy&amp;quot;: &amp;quot;FAIL_FAST&amp;quot; },&lt;/p&gt;





&lt;p&gt;&amp;quot;params&amp;quot;: [&lt;/p&gt;





&lt;p&gt;{ &amp;quot;name&amp;quot;: &amp;quot;count&amp;quot;, &amp;quot;value&amp;quot;: 1 },&lt;/p&gt;





&lt;p&gt;{ &amp;quot;name&amp;quot;: &amp;quot;baseName&amp;quot;, &amp;quot;value&amp;quot;: &amp;quot;sample-site&amp;quot; }&lt;/p&gt;





&lt;p&gt;]&lt;/p&gt;





&lt;p&gt;},&lt;/p&gt;





&lt;p&gt;{&lt;/p&gt;





&lt;p&gt;&amp;quot;id&amp;quot;: &amp;quot;createPage&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;operation&amp;quot;: &amp;quot;layout.create&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;idempotencyKey&amp;quot;: &amp;quot;sample-page-1&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;onError&amp;quot;: { &amp;quot;policy&amp;quot;: &amp;quot;FAIL_FAST&amp;quot; },&lt;/p&gt;





&lt;p&gt;&amp;quot;params&amp;quot;: [&lt;/p&gt;





&lt;p&gt;{ &amp;quot;name&amp;quot;: &amp;quot;count&amp;quot;, &amp;quot;value&amp;quot;: 1 },&lt;/p&gt;





&lt;p&gt;{ &amp;quot;name&amp;quot;: &amp;quot;baseName&amp;quot;, &amp;quot;value&amp;quot;: &amp;quot;welcome&amp;quot; },&lt;/p&gt;





&lt;p&gt;{ &amp;quot;name&amp;quot;: &amp;quot;groupId&amp;quot;, &amp;quot;from&amp;quot;: &amp;quot;steps.createSite.items[0].groupId&amp;quot; },&lt;/p&gt;





&lt;p&gt;{ &amp;quot;name&amp;quot;: &amp;quot;type&amp;quot;, &amp;quot;value&amp;quot;: &amp;quot;portlet&amp;quot; }&lt;/p&gt;





&lt;p&gt;]&lt;/p&gt;





&lt;p&gt;}&lt;/p&gt;





&lt;p&gt;]&lt;/p&gt;





&lt;p&gt;}&lt;/p&gt;





&lt;p&gt;```&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The important part is the `from` reference. `steps.createSite.items[0].groupId` means &amp;quot;use the group id of the site that the previous step just created.&amp;quot;&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;There are 14 operations today, covering companies, organizations, roles, sites, users, pages, web content, documents, blogs, vocabularies, categories, and message board categories, threads and replies.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The workflow is exposed as a small JAX-RS application under `/o/ldf-workflow`:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;| Method and path | Purpose |&lt;/p&gt;





&lt;p&gt;| ------------------------------ | --------------------------------- |&lt;/p&gt;





&lt;p&gt;| `GET /functions` | Operations and their parameters |&lt;/p&gt;





&lt;p&gt;| `GET /schema` | JSON Schema of a workflow request |&lt;/p&gt;





&lt;p&gt;| `POST /plan` | Validate without running |&lt;/p&gt;





&lt;p&gt;| `POST /execute` | Validate, then run |&lt;/p&gt;





&lt;p&gt;| `POST /operations/{operation}` | Run a single operation |&lt;/p&gt;





&lt;p&gt;| `GET /openapi.json` | OpenAPI 3.1 document |&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;You can paste a workflow into the **Workflow JSON** tab in the UI, or `curl` it from a script.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;## Why Bother With MCP?&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Here is the thing about that JSON.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;It is precise, it is repeatable, and nobody enjoys writing it.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;What a support engineer actually has in their head is a sentence: &amp;quot;I need a site with ten web contents and a couple of users.&amp;quot; Translating that sentence into step ids, operation names and reference paths is exactly the kind of mechanical work a language model is good at.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;So the motivation was simple. **I wanted to describe an environment in plain English and have it built.**&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The workflow engine already did the hard part. MCP was the missing front door.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;## I Did Not Write an MCP Server&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Liferay's MCP server does not let you _register_ tools. It _discovers_ them. Any JAX-RS application that publishes an OpenAPI document in the way Liferay's own headless APIs do becomes a tool set, and every operation in it becomes a tool:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;- `operationId` becomes the tool name.&lt;/p&gt;





&lt;p&gt;- `summary` and `description` become the tool description.&lt;/p&gt;





&lt;p&gt;- Parameters and the request body become the tool's `inputSchema`.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;So the whole integration is an OpenAPI document. On the resource class, it is a few component properties and one method:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;```java&lt;/p&gt;





&lt;p&gt;@Component(&lt;/p&gt;





&lt;p&gt;property = {&lt;/p&gt;





&lt;p&gt;&amp;quot;openapi.resource=true&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;openapi.resource.path=/ldf-workflow&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;osgi.jaxrs.application.select=(osgi.jaxrs.name=ldf-workflow)&amp;quot;,&lt;/p&gt;





&lt;p&gt;&amp;quot;osgi.jaxrs.resource=true&amp;quot;&lt;/p&gt;





&lt;p&gt;},&lt;/p&gt;





&lt;p&gt;service = Object.class&lt;/p&gt;





&lt;p&gt;)&lt;/p&gt;





&lt;p&gt;public class WorkflowResource {&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;@GET&lt;/p&gt;





&lt;p&gt;@Path(&amp;quot;openapi.json&amp;quot;)&lt;/p&gt;





&lt;p&gt;public Response getOpenAPI(&lt;/p&gt;





&lt;p&gt;@Context HttpServletRequest httpServletRequest,&lt;/p&gt;





&lt;p&gt;@QueryParam(&amp;quot;type&amp;quot;) String type, @Context UriInfo uriInfo) {&lt;/p&gt;





&lt;p&gt;...&lt;/p&gt;





&lt;p&gt;}&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;}&lt;/p&gt;





&lt;p&gt;```&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Liferay finds the service through `openapi.resource=true` and calls `getOpenAPI` by reflection. The document itself is generated at request time from the same operation descriptors the engine uses, so there is nothing hand-written to drift out of sync.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;That is a powerful combination: the protocol, transport, auth and session handling are Liferay's problem, and the tool definitions are the workflow engine's own metadata.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### Two Kinds of Tools&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The first version exposed four coarse tools: `getWorkflowFunctions`, `getWorkflowSchema`, `planWorkflow` and `executeWorkflow`. The OpenAPI `info.description` tells the model how to use them: learn the operations, compose a request, validate it with `planWorkflow`, then run it with `executeWorkflow`.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;That works, but it asks a lot of the model for simple requests. &amp;quot;Create 5 users&amp;quot; should not require composing a workflow.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;So I added 14 **per-operation tools** such as `createUsers`, `createSites` and `createWebContents`. Each one is backed by `POST /operations/{operation}`, has a strict schema (`additionalProperties: false`, typed parameters, a bounded `count`), and takes literal values only.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The workflow tools are for chains. The per-operation tools are for everything else. In practice, Claude picks between them on its own.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### A Profile, So the Model Sees Real Tools&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;There is one more layer. The default `/o/mcp` endpoint does not list every tool directly. It exposes four meta tools that let the client browse tool sets and invoke a tool by name. That keeps it manageable when there are thousands of operations, but the generic invoke tool takes an opaque, nested `body`, so the model never sees a typed schema.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Liferay's answer is **MCP server profiles**. A profile is served at `/o/mcp/&amp;lt;profile&amp;gt;` and pins a chosen set of tools as first-class tools.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Dummy Factory provisions a profile called `ldf` with all 18 tools. The provisioner is a Gradle task in the repository, not code in the bundle:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;```bash&lt;/p&gt;





&lt;p&gt;./gradlew startDockerContainer&lt;/p&gt;





&lt;p&gt;./gradlew :integration-test:setupMcpProfile&lt;/p&gt;





&lt;p&gt;# -&amp;gt; MCP profile 'ldf' ready at http://localhost:8080/o/mcp/ldf&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;claude mcp add --transport http ldf http://localhost:8080/o/mcp/ldf \&lt;/p&gt;





&lt;p&gt;--header &amp;quot;Authorization: Basic &amp;lt;base64 of user:password&amp;gt;&amp;quot;&lt;/p&gt;





&lt;p&gt;```&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;And then:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;```&lt;/p&gt;





&lt;p&gt;&amp;gt; Create 5 users with base name demo-user&lt;/p&gt;





&lt;p&gt;tool: mcp__ldf__createUsers {&amp;quot;body&amp;quot;:{&amp;quot;baseName&amp;quot;:&amp;quot;demo-user&amp;quot;,&amp;quot;count&amp;quot;:5}}&lt;/p&gt;





&lt;p&gt;result: status SUCCEEDED, success true, count 5, demo-user1 .. demo-user5&lt;/p&gt;





&lt;p&gt;```&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The full walkthrough is in [docs/guides/mcp-setup.md](https://github.com/yasuflatland-lf/liferay-dummy-factory/blob/master/docs/guides/mcp-setup.md).&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;I only tested Claude Code. Because the `ldf` profile is just another MCP endpoint, the client configurations in the [official documentation](https://learn.liferay.com/w/dxp/ai/using-liferay-as-an-mcp-server) should work if you replace `/o/mcp` with `/o/mcp/ldf`. If you try one of them, I would like to hear how it goes.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;## The Things That Did Not Go As Planned&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The architecture was clean. Getting there was less so.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### `tools/list` Came Back Empty&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The first test was a smoke test: `initialize` worked, and `tools/list` returned `{&amp;quot;tools&amp;quot;:[]}`.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The log explained it:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;```&lt;/p&gt;





&lt;p&gt;Skipping MCP tool &amp;quot;getToolSetsPage&amp;quot; from tool set &amp;quot;mcp-server-v1.0&amp;quot; ... HTTP 401 for /mcp-server/v1.0/openapi.json&lt;/p&gt;





&lt;p&gt;```&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Liferay builds the tool list by fetching each tool set's `openapi.json` through an internal request **without credentials**. The test container forces Basic Auth on `/o/*`, so every one of those fetches got a 401, and every tool was skipped.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The fix was an explicit `urlsExcludes` entry per OpenAPI document in the Basic Auth verifier configuration. I deliberately did not use a `*.json` wildcard. That would have exempted far more than I intended.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### Then the Tool Calls Returned 401&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;With the list fixed, invoking a tool returned `Status code: 401`.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;When the MCP server runs a tool, it forwards the request internally, and the user travels as a request attribute rather than an `Authorization` header. With `forceBasicAuth` on, the Basic Auth verifier is the only one that runs, so it challenged the forward.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The solution was to split the verifier into two instances: the default one keeps forcing Basic Auth everywhere except `/o/ldf-workflow/*`, and a second instance covers `/o/ldf-workflow/*` with `forceBasicAuth=false`. A wrong password still gets a 401.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;To be clear, this is a quirk of my test container's forced Basic Auth, not something you will hit on a default installation.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### Which Exposed a Gap in Access Control&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Dummy Factory is a testing tool. It belongs on local and disposable environments, never in production, so what follows was never a real-world exposure.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;It was still worth fixing.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Once the forced challenge was gone, I tried the obvious next thing: call `/execute` with no credentials at all. It ran as Guest, and it created data. That was not new; it was true on a stock DXP as well. MCP just made me look.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;While I was there, I also found that a step could pass `userId` or `companyId` and act as somebody else.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;On a test container, neither of those is going to hurt anyone. But an MCP client is not a person clicking through a form. It composes requests on its own, and I want a tool that runs unattended like that to stay inside the permissions of the user it signed in as. So I tightened things up:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;- Every endpoint that writes now requires a signed-in user, and returns a 401 with a proper `Basic realm` otherwise.&lt;/p&gt;





&lt;p&gt;- The workflow API requires a company administrator, and `company.create` requires an omniadmin.&lt;/p&gt;





&lt;p&gt;- Steps always run as the signed-in user. The per-operation tools reject `userId`, `companyId` and any other unknown key with a 400.&lt;/p&gt;





&lt;p&gt;- Every Creator rejects ids that belong to another virtual instance.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The lesson I took away: **an MCP client is just another API client, and it will find every gap your UI was quietly hiding.**&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### An LLM Can Type `100000` As Easily As `10`&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;A form has a person in front of it. A tool call does not.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;So every entry point now shares one check, `BatchSpec.validateCount`, with a cap of 1000 per request. Over the cap is rejected, never silently truncated. For web content, the cap applies to `count × groupIds`, because the count is per site.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Writing the tests for that turned up a loophole. A number like `1000.9` was truncated to 1000, and `4294968296` wrapped around to 1000, both slipping under the cap. Parsing now uses `BigDecimal.intValueExact()`, so those are rejected too.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### Tool Definitions Are Cached&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;I changed a tool description, hot-redeployed the bundle, and the new text was in `openapi.json` right away.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The MCP tools kept the old text for as long as I was willing to watch.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The MCP server caches each OpenAPI document per company, and each profile keeps its own snapshot of the schemas. I did not try to fight that. It is documented instead: after a redeploy that changes the OpenAPI document, restart the container, then re-run `setupMcpProfile`.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### The Image Was Not the Source&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;I designed the profile provisioning by reading the `master` branch of `liferay-portal`. The 2026.Q3.6 image did not match it. On that image, a server profile has `name`, `description` and a required `tools` text field, and the richer profile tool APIs I had been reading about simply return 404 because they arrived upstream later.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;It also silently accepts a tool line naming a tool that does not exist.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;So provisioning is a single idempotent `PUT` by external reference code, followed by a `tools/list` check to make sure the profile really exposes what it was supposed to.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;If you are building against a quarterly release, read the source at that release, not at `master`.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;### `executeWorkflow` Returns 200 When a Step Fails&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The MCP server marks a tool result as an error only for HTTP status 300 or above. `/execute` returns 200 with a per-step status in the body, which the UI depends on.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Rather than break the UI, the tool description says so explicitly. The per-operation tools return 422 on failure, so those failures do show up as errors to the model.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;## A Few Caveats&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Dummy Factory is a development and testing tool. **Do not install it on a production system**, with or without MCP.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The MCP setup in this project is aimed at one scenario: Claude Code on your machine, talking to a local DXP container with Basic Auth. Remote access and OAuth 2.0 flows are out of scope for now. Liferay's MCP server supports OAuth 2.0 bearer tokens, so that is a reasonable next step, but I have not tested it with Dummy Factory.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;And the usual caution applies. An MCP client acts with the permissions of the user it signs in as. Use an account on a disposable environment.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;## Try It, and Tell Me What Breaks&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The repository is at [github.com/yasuflatland-lf/liferay-dummy-factory](https://github.com/yasuflatland-lf/liferay-dummy-factory), and the 2026.Q3.6 build is on the [releases page](https://github.com/yasuflatland-lf/liferay-dummy-factory/releases/tag/2026.q3.6). Drop the JAR into `${LIFERAY_HOME}/deploy`, enable the MCP server, and follow the setup guide.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;I would really like to hear how it holds up in your environment:&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;- **Found a bug?** [Open an issue](https://github.com/yasuflatland-lf/liferay-dummy-factory/issues/new?labels=bug) with the request and the response you got.&lt;/p&gt;





&lt;p&gt;- **Missing an entity type or a tool?** [Request an enhancement](https://github.com/yasuflatland-lf/liferay-dummy-factory/issues/new?labels=enhancement) and tell me what environment you were trying to build.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The tool list is driven by real use. If &amp;quot;create a site with three levels of categories and a few hundred documents&amp;quot; is a sentence you keep needing, that is exactly the kind of thing I want to know about.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;## Final Thoughts&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The interesting part of this project was how little of it was about MCP.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Liferay already handles the protocol. The workflow engine already knew how to build a chain of entities. The integration was an OpenAPI document and a profile. Almost all the real work was elsewhere: authentication edge cases, a security gap, input limits, and caching behaviour that only shows up when a machine, not a person, is on the other end.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;A model will do anything your API allows it to do. It does not hesitate at a missing permission check, and it does not stop at a number that looks too large. If the door is open, it walks through.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The flip side is what I did not expect to learn. The same AI is very good at finding those open doors. Ask it to probe your API the way an unattended agent would, and it turns up the gaps a person clicking through the UI never hits. Many of the issues in this post surfaced that way.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;That is the takeaway I would offer anyone exposing their own Liferay module to MCP. Assume the model will try everything it can, and let the AI help you find out what &amp;quot;everything&amp;quot; means before you ship.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Yasuyuki Takeo</dc:creator>
    <dc:date>2026-10-10T20:30:00Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP Is an MCP Server. Now What?</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126836148" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126836148</id>
    <updated>2026-09-28T17:42:20Z</updated>
    <published>2026-09-28T16:04:00Z</published>
    <summary type="html">&lt;p&gt;Liferay DXP 2026.Q3 includes a capability I have been wanting to experiment with: &lt;strong&gt;Liferay can now act as a Model Context Protocol server&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;I knew what MCP was conceptually, but I had no idea what I would actually find once I connected an AI client to Liferay and let it explore.&lt;/p&gt;





&lt;p&gt;So I did what seemed reasonable.&lt;/p&gt;





&lt;p&gt;I started a disposable local Liferay instance, enabled MCP, connected Claude Code, gave it an Omniadmin account, and let it investigate.&lt;/p&gt;





&lt;p&gt;The result was much more interesting than &amp;quot;AI can retrieve some content.&amp;quot;&lt;/p&gt;





&lt;p&gt;Claude created Liferay Objects, added fields and relationships, published them, immediately discovered the new APIs generated from those Objects, created and queried data, built out a Commerce catalog and storefront configuration, and even created MCP prompts and profiles.&lt;/p&gt;





&lt;p&gt;That changed how I thought about the feature.&lt;/p&gt;





&lt;p&gt;MCP isn't really about adding an AI API to Liferay.&lt;/p&gt;





&lt;p&gt;It is about making the Liferay platform itself discoverable and operable by an AI agent.&lt;/p&gt;





&lt;h2&gt;What MCP Actually Means&lt;/h2&gt;





&lt;p&gt;The Model Context Protocol, or MCP, is an open standard for connecting AI applications to external tools and data.&lt;/p&gt;





&lt;p&gt;Starting with Liferay DXP 2026.Q3, Liferay can act as an MCP server. An MCP-capable client such as Claude, GitHub Copilot, Cursor, or Gemini CLI can connect to Liferay and interact with capabilities exposed by the platform.&lt;/p&gt;





&lt;p&gt;See the Liferay documentation for the complete setup and configuration details: &lt;a&gt;Using Liferay as an MCP Server&lt;/a&gt;.&lt;/p&gt;





&lt;p&gt;At a high level:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836161" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-01.png/c14e4313-f5fd-0915-0531-47c57bc8c194"&gt;&lt;/p&gt;





&lt;p&gt;MCP is not another AI model.&lt;/p&gt;





&lt;p&gt;It is the protocol that lets an AI application discover and invoke capabilities provided by another system.&lt;/p&gt;





&lt;p&gt;Another way to think about it is:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;REST gives applications a way to work with Liferay programmatically. MCP gives AI applications a standard way to discover how to work with Liferay programmatically.&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;That second part, &lt;strong&gt;discover&lt;/strong&gt;, turns out to be important.&lt;/p&gt;





&lt;h2&gt;Liferay Does Not Expose Thousands of MCP Tools&lt;/h2&gt;





&lt;p&gt;When I first connected Claude to Liferay, I expected MCP &lt;code&gt;tools/list&lt;/code&gt; to be enormous.&lt;/p&gt;





&lt;p&gt;Liferay has a lot of APIs.&lt;/p&gt;





&lt;p&gt;Instead, it returned exactly four tools.&lt;/p&gt;





&lt;table&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;Tool&lt;/th&gt;
			&lt;th&gt;Purpose&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;getToolSetsPage&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;Discover available groups of Liferay operations&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;getToolSetToolSetNameToolSummariesPage&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;Discover operations in one tool set&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;getToolSetToolSetNameTool&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;Retrieve the input schema for one operation&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;postToolSetToolSetNameToolInvoke&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;Invoke the selected operation&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt;So Liferay uses progressive discovery:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836172" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-02.png/a5f27484-a10e-b4f4-4d74-577b3e2dd957"&gt;&lt;/p&gt;





&lt;p&gt;I like this architecture.&lt;/p&gt;





&lt;p&gt;My initial system exposed 76 tool sets spanning CMS, Objects, sites, users, workflow, search, Commerce, batch processing, OAuth, SAML, audit, notifications, and other platform capabilities. Behind those tool sets were roughly 4,000 individual operations.&lt;/p&gt;





&lt;p&gt;Loading thousands of tool definitions into the model before the user has asked a question would consume a lot of context.&lt;/p&gt;





&lt;p&gt;Instead, the initial four-tool MCP definition was only about 2.9 KB in my testing. The client pays the larger discovery cost only when it needs to explore a particular area of Liferay.&lt;/p&gt;





&lt;p&gt;That means an agent trying to work with Objects can progressively discover Object capabilities without first loading every Commerce, Workflow, User Management, and CMS operation.&lt;/p&gt;





&lt;h2&gt;Enabling MCP in Liferay&lt;/h2&gt;





&lt;p&gt;The MCP server is disabled by default.&lt;/p&gt;





&lt;p&gt;For Liferay DXP 2026.Q3, first enable the release feature flag:&lt;/p&gt;





&lt;pre&gt;
LPD-63311
&lt;/pre&gt;





&lt;p&gt;Then navigate to:&lt;/p&gt;





&lt;pre&gt;
Control Panel
  -&amp;gt; Instance Settings
    -&amp;gt; Platform
      -&amp;gt; MCP Server
&lt;/pre&gt;





&lt;p&gt;Enable the MCP server for the virtual instance.&lt;/p&gt;





&lt;p&gt;See &lt;a&gt;Using Liferay as an MCP Server&lt;/a&gt; for the current configuration steps.&lt;/p&gt;





&lt;p&gt;The endpoint is:&lt;/p&gt;





&lt;pre&gt;
/o/mcp
&lt;/pre&gt;





&lt;p&gt;A useful first test is:&lt;/p&gt;





&lt;pre&gt;
curl -i http://localhost:8080/o/mcp
&lt;/pre&gt;





&lt;p&gt;If MCP is enabled but no credentials are supplied, you should receive an HTTP &lt;code&gt;401&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;If MCP is disabled for the virtual instance, the endpoint returns &lt;code&gt;404&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;Liferay supports both Basic authentication and OAuth 2.0 bearer tokens. In either case, the important part is that the request is associated with a Liferay user and operations execute according to that user's permissions.&lt;/p&gt;





&lt;p&gt;For my disposable development environment, I used Basic authentication.&lt;/p&gt;





&lt;h2&gt;Connecting Claude Code&lt;/h2&gt;





&lt;p&gt;I chose Claude Code for most of my experimentation because it is already part of my normal development workflow.&lt;/p&gt;





&lt;p&gt;The setup was pleasantly uneventful.&lt;/p&gt;





&lt;p&gt;I put the authorization value in an environment variable:&lt;/p&gt;





&lt;pre&gt;
export LIFERAY_MCP_AUTH=&amp;quot;Basic &amp;lt;your-base64-credentials&amp;gt;&amp;quot;
&lt;/pre&gt;





&lt;p&gt;Then I created a &lt;code&gt;.mcp.json&lt;/code&gt; file in my working directory:&lt;/p&gt;





&lt;pre&gt;
{
  &amp;quot;mcpServers&amp;quot;: {
    &amp;quot;liferay&amp;quot;: {
      &amp;quot;type&amp;quot;: &amp;quot;http&amp;quot;,
      &amp;quot;url&amp;quot;: &amp;quot;http://127.0.0.1:8080/o/mcp&amp;quot;,
      &amp;quot;headers&amp;quot;: {
        &amp;quot;Authorization&amp;quot;: &amp;quot;${LIFERAY_MCP_AUTH}&amp;quot;
      }
    }
  }
}
&lt;/pre&gt;





&lt;p&gt;That was essentially the entire integration.&lt;/p&gt;





&lt;p&gt;When I started Claude Code from that directory, it picked up the project-level &lt;code&gt;.mcp.json&lt;/code&gt; automatically.&lt;/p&gt;





&lt;p&gt;Running:&lt;/p&gt;





&lt;pre&gt;
/mcp
&lt;/pre&gt;





&lt;p&gt;showed the Liferay connection and its four MCP tools.&lt;/p&gt;





&lt;p&gt;There was no separate registration process and no custom Claude integration to write.&lt;/p&gt;





&lt;h3&gt;One Important Compatibility Detail&lt;/h3&gt;





&lt;p&gt;At the time I performed these tests, my &lt;code&gt;dxp-2026.q3.5&lt;/code&gt; installation reported:&lt;/p&gt;





&lt;pre&gt;
MCP protocol: 2025-11-25
Server: Java SDK MCP Server 0.15.0
&lt;/pre&gt;





&lt;p&gt;Claude Code also supports a newer generation of MCP protocol negotiation, so I launched it explicitly in its legacy-compatible mode:&lt;/p&gt;





&lt;pre&gt;
MCP_SDK_GENERATION=v1 \
  MCP_PROTOCOL_NEGOTIATION=legacy \
  claude
&lt;/pre&gt;





&lt;p&gt;With that configuration, Claude connected cleanly.&lt;/p&gt;





&lt;p&gt;This is worth knowing when connecting current MCP clients to Liferay 2026.Q3. If your client supports multiple MCP protocol generations, select its legacy or 2025-compatible negotiation mode.&lt;/p&gt;





&lt;p&gt;Once Claude connected, &lt;code&gt;/mcp&lt;/code&gt; showed:&lt;/p&gt;





&lt;pre&gt;
Project MCPs
✓ liferay    4 tools
&lt;/pre&gt;





&lt;p&gt;And that was enough to start exploring.&lt;/p&gt;





&lt;h2&gt;MCP Still Uses Liferay Security&lt;/h2&gt;





&lt;p&gt;Before getting to the fun experiments, there is an architectural point that matters.&lt;/p&gt;





&lt;p&gt;An AI agent should not get some special &amp;quot;AI administrator&amp;quot; path around Liferay security.&lt;/p&gt;





&lt;p&gt;Fortunately, that is not how the MCP server works.&lt;/p&gt;





&lt;p&gt;Authentication resolves to a Liferay user, and Liferay permissions are applied when tools are invoked. My permission experiments confirmed that operations the user was not allowed to perform were rejected.&lt;/p&gt;





&lt;p&gt;That suggests a very familiar security model:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836183" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-03.png/a851262e-f845-e0b8-734d-22eb48fde0a5"&gt;ye&lt;/p&gt;





&lt;p&gt;The fact that the caller happens to be Claude instead of a browser or custom application doesn't eliminate the need for normal permission design.&lt;/p&gt;





&lt;h3&gt;Write Access in Development, Not Production&lt;/h3&gt;





&lt;p&gt;For my experiments, I intentionally used Omniadmin.&lt;/p&gt;





&lt;p&gt;I could do that because the instance was disposable.&lt;/p&gt;





&lt;p&gt;I would not connect an Omniadmin AI agent directly to production.&lt;/p&gt;





&lt;p&gt;There are simply too many powerful operations available once the identity has sufficient permissions.&lt;/p&gt;





&lt;p&gt;My preferred architecture is:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836202" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-04.png/8b705b29-83f0-8980-dc87-b0087f9bf81e"&gt;&lt;/p&gt;





&lt;p&gt;Use MCP to help build things in a lower environment.&lt;/p&gt;





&lt;p&gt;Then use the same mechanisms you would normally use to promote approved work into production.&lt;/p&gt;





&lt;p&gt;Depending on what you're building, that might include Publications, export/import, batch operations, Site Initializers, or another controlled deployment mechanism.&lt;/p&gt;





&lt;h3&gt;Read-Only MCP in Production Is More Interesting&lt;/h3&gt;





&lt;p&gt;I do see a useful production pattern.&lt;/p&gt;





&lt;p&gt;Instead of giving the agent write access, create a dedicated Liferay identity with narrowly scoped view permissions.&lt;/p&gt;





&lt;p&gt;Then expose only the MCP capabilities needed by that agent.&lt;/p&gt;





&lt;p&gt;Now questions like these become interesting:&lt;/p&gt;





&lt;pre&gt;
Which content has not been updated in the last year?

Which products are currently out of stock?

Which sites use this structure?

Which Object entries are in this state?

What changed recently in this environment?
&lt;/pre&gt;





&lt;p&gt;That is a substantially different risk profile from letting an agent administer production.&lt;/p&gt;





&lt;p&gt;Liferay MCP profiles give us another useful tool for building that architecture.&lt;/p&gt;





&lt;p&gt;I'll come back to profiles shortly.&lt;/p&gt;





&lt;h2&gt;Enough Architecture. What Can It Actually Do?&lt;/h2&gt;





&lt;p&gt;Once Claude was connected, I gave it permission to explore the disposable environment.&lt;/p&gt;





&lt;p&gt;I didn't tell it exactly which REST APIs to call.&lt;/p&gt;





&lt;p&gt;Instead, I let it use MCP discovery to figure out how Liferay worked.&lt;/p&gt;





&lt;p&gt;Three experiments stood out.&lt;/p&gt;





&lt;h2&gt;Experiment 1: Build an Application With Liferay Objects&lt;/h2&gt;





&lt;p&gt;This ended up being my favorite experiment.&lt;/p&gt;





&lt;p&gt;Claude created two Object definitions:&lt;/p&gt;





&lt;pre&gt;
MCPResearchCategory
MCPResearchItem
&lt;/pre&gt;





&lt;p&gt;The item definition contained fields such as:&lt;/p&gt;





&lt;pre&gt;
itemName
quantity
unitPrice
inStock
contactEmail
contactPhone
notes
&lt;/pre&gt;





&lt;p&gt;Claude also created a one-to-many relationship:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836413" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-05.png/c582d882-3d06-0aca-22f3-79272e1f7ddf"&gt;&lt;/p&gt;





&lt;p&gt;Then it published both Object definitions.&lt;/p&gt;





&lt;p&gt;And something interesting happened.&lt;/p&gt;





&lt;p&gt;On the next MCP discovery call, Liferay exposed two new tool sets:&lt;/p&gt;





&lt;pre&gt;
c-mcpresearchitems
c-mcpresearchcategories
&lt;/pre&gt;





&lt;p&gt;Claude had created a new application data model, and Liferay immediately exposed the APIs generated from that model back through MCP.&lt;/p&gt;





&lt;p&gt;The loop became:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836424" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-06.png/c7f43584-b95a-68b5-b90f-ef03af99e850"&gt;&lt;/p&gt;





&lt;p&gt;There was no restart.&lt;/p&gt;





&lt;p&gt;There was no client regeneration.&lt;/p&gt;





&lt;p&gt;There was no MCP configuration change.&lt;/p&gt;





&lt;p&gt;The platform changed, and MCP discovery changed with it.&lt;/p&gt;





&lt;p&gt;That is a powerful combination.&lt;/p&gt;





&lt;p&gt;Liferay Objects already let us create application data models without writing a traditional backend.&lt;/p&gt;





&lt;p&gt;MCP means an AI agent can participate in creating that model and then immediately start using the application it just created.&lt;/p&gt;





&lt;h3&gt;Creating and Using the Data&lt;/h3&gt;





&lt;p&gt;Claude continued by:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;Creating a category.&lt;/li&gt;
	&lt;li&gt;Batch-creating three items.&lt;/li&gt;
	&lt;li&gt;Linking them to the category using an external reference code.&lt;/li&gt;
	&lt;li&gt;Querying entries using filters.&lt;/li&gt;
	&lt;li&gt;Sorting results.&lt;/li&gt;
	&lt;li&gt;Updating an entry.&lt;/li&gt;
	&lt;li&gt;Traversing the Object relationship.&lt;/li&gt;
	&lt;li&gt;Creating and deleting a temporary entry.&lt;/li&gt;
	&lt;li&gt;Adding another field to the published Object definition.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;All of those functional operations went through MCP.&lt;/p&gt;





&lt;p&gt;An update ultimately looked like this:&lt;/p&gt;





&lt;pre&gt;
{
  &amp;quot;toolSetName&amp;quot;: &amp;quot;c-mcpresearchitems&amp;quot;,
  &amp;quot;toolName&amp;quot;: &amp;quot;patchByExternalReferenceCode&amp;quot;,
  &amp;quot;body&amp;quot;: {
    &amp;quot;externalReferenceCode&amp;quot;: &amp;quot;mcp-research-item-3&amp;quot;,
    &amp;quot;fields&amp;quot;: [
      &amp;quot;itemName&amp;quot;,
      &amp;quot;quantity&amp;quot;
    ],
    &amp;quot;body&amp;quot;: {
      &amp;quot;quantity&amp;quot;: 40,
      &amp;quot;inStock&amp;quot;: true
    }
  }
}
&lt;/pre&gt;





&lt;p&gt;That brings up an important operating pattern.&lt;/p&gt;





&lt;h3&gt;Prefer Sparse PATCH Operations&lt;/h3&gt;





&lt;p&gt;For agent-driven modifications, I strongly prefer PATCH operations that contain only the fields the agent actually intends to change.&lt;/p&gt;





&lt;p&gt;For example:&lt;/p&gt;





&lt;pre&gt;
{
  &amp;quot;quantity&amp;quot;: 40,
  &amp;quot;inStock&amp;quot;: true
}
&lt;/pre&gt;





&lt;p&gt;rather than retrieving the complete entity, modifying two values, and sending the whole thing back.&lt;/p&gt;





&lt;p&gt;The pattern should be:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836452" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-07.png/6c385b16-d600-48af-fa3f-a33194402ba8"&gt;&lt;/p&gt;





&lt;p&gt;There are several benefits:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Smaller requests.&lt;/li&gt;
	&lt;li&gt;Clearer intent.&lt;/li&gt;
	&lt;li&gt;Fewer accidental changes.&lt;/li&gt;
	&lt;li&gt;Unchanged values remain untouched.&lt;/li&gt;
	&lt;li&gt;Transformed or masked fields from a response do not need to be submitted again.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;This is good REST practice in general, but it becomes especially useful when an agent is orchestrating the API calls.&lt;/p&gt;





&lt;h2&gt;Experiment 2: Build Out a Commerce Storefront&lt;/h2&gt;





&lt;p&gt;The Commerce experiment demonstrated how far an agent can go once it understands a set of related APIs.&lt;/p&gt;





&lt;p&gt;I started with an essentially empty Commerce setup.&lt;/p&gt;





&lt;p&gt;Claude created this sequence:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836466" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-08.png/db973dd8-09b1-c36f-014b-28fb16c0cd23"&gt;&lt;/p&gt;





&lt;p&gt;Specifically, the experiment created:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;A USD Commerce catalog.&lt;/li&gt;
	&lt;li&gt;A product and default SKU.&lt;/li&gt;
	&lt;li&gt;A product specification.&lt;/li&gt;
	&lt;li&gt;An option with values.&lt;/li&gt;
	&lt;li&gt;A warehouse.&lt;/li&gt;
	&lt;li&gt;250 units of inventory.&lt;/li&gt;
	&lt;li&gt;A promotional price.&lt;/li&gt;
	&lt;li&gt;A Commerce channel associated with the test site.&lt;/li&gt;
	&lt;li&gt;A buyer-facing storefront view of the product.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;The delivery API then showed the product with its regular price, promotional price, and calculated final price.&lt;/p&gt;





&lt;p&gt;The important part wasn't that these REST APIs exist.&lt;/p&gt;





&lt;p&gt;We already know that.&lt;/p&gt;





&lt;p&gt;The interesting part was watching the AI determine which parts of Commerce it needed, discover the appropriate operations, inspect the required schemas, execute the calls, and continue to the next step.&lt;/p&gt;





&lt;p&gt;That leads naturally to more practical requests.&lt;/p&gt;





&lt;p&gt;For example:&lt;/p&gt;





&lt;pre&gt;
Find every product without a description
and draft one using its specifications.
&lt;/pre&gt;





&lt;p&gt;Or:&lt;/p&gt;





&lt;pre&gt;
Show me products with fewer than 20 units
available in any warehouse.
&lt;/pre&gt;





&lt;p&gt;Or:&lt;/p&gt;





&lt;pre&gt;
Create a new Commerce catalog with these
products, SKUs, specifications and prices.
&lt;/pre&gt;





&lt;p&gt;Those are workflows rather than individual API calls.&lt;/p&gt;





&lt;p&gt;And workflows are where giving an agent a discoverable platform becomes much more interesting.&lt;/p&gt;





&lt;h2&gt;Experiment 3: Liferay Can Configure Its Own MCP Experience&lt;/h2&gt;





&lt;p&gt;Another thing I wanted to understand was how much control Liferay gives us over the MCP surface itself.&lt;/p&gt;





&lt;p&gt;Quite a lot, as it turns out.&lt;/p&gt;





&lt;p&gt;Liferay represents several MCP concepts using Liferay Objects, including:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;MCP prompts.&lt;/li&gt;
	&lt;li&gt;MCP server profiles.&lt;/li&gt;
	&lt;li&gt;Data masks.&lt;/li&gt;
	&lt;li&gt;Profile-to-mask associations.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;That means MCP configuration itself participates in familiar Liferay concepts such as Object data, permissions, APIs, and environment promotion.&lt;/p&gt;





&lt;h3&gt;MCP Prompts&lt;/h3&gt;





&lt;p&gt;I had Claude create an MCP prompt named:&lt;/p&gt;





&lt;pre&gt;
mcp-research-summarize-site
&lt;/pre&gt;





&lt;p&gt;The prompt contained instructions for summarizing a site's content.&lt;/p&gt;





&lt;p&gt;As soon as the Object entry was created, it appeared through MCP &lt;code&gt;prompts/list&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;No restart.&lt;/p&gt;





&lt;p&gt;No client reconnect.&lt;/p&gt;





&lt;p&gt;Updating the prompt was reflected on the next request.&lt;/p&gt;





&lt;p&gt;That means MCP prompts can themselves be managed as Liferay data.&lt;/p&gt;





&lt;h3&gt;MCP Profiles&lt;/h3&gt;





&lt;p&gt;Profiles may be even more interesting.&lt;/p&gt;





&lt;p&gt;The normal MCP endpoint is:&lt;/p&gt;





&lt;pre&gt;
/o/mcp
&lt;/pre&gt;





&lt;p&gt;Custom profiles can be exposed as:&lt;/p&gt;





&lt;pre&gt;
/o/mcp/&amp;lt;profile-name&amp;gt;
&lt;/pre&gt;





&lt;p&gt;A profile can define which tools are exposed from that endpoint.&lt;/p&gt;





&lt;p&gt;So we could conceptually create:&lt;/p&gt;





&lt;pre&gt;
/o/mcp/developer

/o/mcp/content

/o/mcp/commerce

/o/mcp/production-reader
&lt;/pre&gt;





&lt;p&gt;Each one can present a different MCP surface for a different use case.&lt;/p&gt;





&lt;p&gt;That fits very naturally with the production architecture discussed earlier.&lt;/p&gt;





&lt;p&gt;For example:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836477" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-09.png/20af9900-7175-b05c-6f2f-ac168d7fe5d1"&gt;&lt;/p&gt;





&lt;p&gt;Liferay permissions still decide what the identity is allowed to do.&lt;/p&gt;





&lt;p&gt;The MCP profile can reduce which operations the client sees in the first place.&lt;/p&gt;





&lt;p&gt;Those are complementary controls.&lt;/p&gt;





&lt;h2&gt;A Few Patterns I Would Use From the Beginning&lt;/h2&gt;





&lt;p&gt;After working with MCP for a while, several implementation habits became useful quickly.&lt;/p&gt;





&lt;h3&gt;Use External Reference Codes&lt;/h3&gt;





&lt;p&gt;Give anything you create an explicit ERC when possible.&lt;/p&gt;





&lt;p&gt;For example:&lt;/p&gt;





&lt;pre&gt;
mcp-research-site
mcp-research-item-1
mcp-research-catalog
mcp-research-product-mug
&lt;/pre&gt;





&lt;p&gt;Numeric IDs are normally environment-specific.&lt;/p&gt;





&lt;p&gt;ERCs give the agent stable identifiers that make sense across DEV, UAT, and production.&lt;/p&gt;





&lt;p&gt;That makes both retries and eventual promotion easier.&lt;/p&gt;





&lt;p&gt;Instead of:&lt;/p&gt;





&lt;pre&gt;
Update Object entry 43827
&lt;/pre&gt;





&lt;p&gt;you can work with:&lt;/p&gt;





&lt;pre&gt;
Update the item with ERC mcp-research-item-1
&lt;/pre&gt;





&lt;p&gt;That is a much better contract for long-running or repeatable automation.&lt;/p&gt;





&lt;h3&gt;Use &lt;code&gt;fields&lt;/code&gt; Aggressively&lt;/h3&gt;





&lt;p&gt;Liferay's Headless APIs support response field projection, and the same capability is valuable through MCP.&lt;/p&gt;





&lt;p&gt;If the agent only needs:&lt;/p&gt;





&lt;pre&gt;
id
name
status
&lt;/pre&gt;





&lt;p&gt;ask for exactly those fields.&lt;/p&gt;





&lt;p&gt;During the Object experiment, using &lt;code&gt;fields&lt;/code&gt; on one write reduced the response from roughly 10 KB to around 150 bytes.&lt;/p&gt;





&lt;p&gt;For an AI workflow, that reduction matters for more than bandwidth.&lt;/p&gt;





&lt;p&gt;The response becomes part of the model's context.&lt;/p&gt;





&lt;p&gt;So this:&lt;/p&gt;





&lt;pre&gt;
{
  &amp;quot;fields&amp;quot;: [
    &amp;quot;id&amp;quot;,
    &amp;quot;name&amp;quot;,
    &amp;quot;status&amp;quot;
  ]
}
&lt;/pre&gt;





&lt;p&gt;can directly reduce how much context an operation consumes.&lt;/p&gt;





&lt;h3&gt;Remember That Batch Operations Are Asynchronous&lt;/h3&gt;





&lt;p&gt;Not every MCP invocation ends with the final business result.&lt;/p&gt;





&lt;p&gt;Claude batch-created Object entries during the experiment. That operation returned a Liferay import task, which then needed to be checked through the Batch Engine API until processing completed.&lt;/p&gt;





&lt;p&gt;The architecture looks more like:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836495" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-10.png/ce49a94c-1ce5-ddbd-393f-369f2a04140a"&gt;&lt;/p&gt;





&lt;p&gt;An agent working effectively with an enterprise platform needs to understand both synchronous and asynchronous workflows.&lt;/p&gt;





&lt;p&gt;MCP does not remove those architectural differences.&lt;/p&gt;





&lt;p&gt;It gives the agent a way to participate in them.&lt;/p&gt;





&lt;h2&gt;What About Sensitive Data?&lt;/h2&gt;





&lt;p&gt;Liferay also supports data masks for MCP responses.&lt;/p&gt;





&lt;p&gt;There are built-in masks for common data patterns, including email addresses, telephone numbers, credit card numbers, IP addresses, IBANs, and several national identification formats. Custom masks can also be created and associated with MCP profiles.&lt;/p&gt;





&lt;p&gt;See &lt;a&gt;Masking Sensitive Data in MCP Server Responses&lt;/a&gt; for the configuration details.&lt;/p&gt;





&lt;p&gt;I would treat masking as an additional data-handling mechanism rather than a substitute for access control.&lt;/p&gt;





&lt;p&gt;The first line of defense should still be:&lt;/p&gt;





&lt;pre&gt;
Which user is this?

What may that user see?

What may that user modify?
&lt;/pre&gt;





&lt;p&gt;Then MCP profiles and response handling can further shape what is exposed to the client.&lt;/p&gt;





&lt;p&gt;For write operations, the sparse PATCH pattern is also useful here. If the agent only sends the properties it intends to change, it does not need to round-trip unrelated values from the response.&lt;/p&gt;





&lt;h2&gt;Where Could This Go?&lt;/h2&gt;





&lt;p&gt;Once you stop thinking about MCP as a collection of individual API calls, the possibilities get more interesting.&lt;/p&gt;





&lt;h3&gt;Content Review&lt;/h3&gt;





&lt;pre&gt;
Find content that has not been modified in
the last year.

Summarize it and identify items that should
probably be reviewed.
&lt;/pre&gt;





&lt;h3&gt;Application Prototyping&lt;/h3&gt;





&lt;pre&gt;
Create an Object for conference sessions.

A session has a title, abstract, speaker,
room, start time, end time and capacity.

Create a Speaker Object, relate the two,
publish them and seed some sample data.
&lt;/pre&gt;





&lt;h3&gt;Commerce Administration&lt;/h3&gt;





&lt;pre&gt;
Find products that are missing descriptions.

Draft descriptions from their specifications.

Show them to me before updating anything.
&lt;/pre&gt;





&lt;h3&gt;Production Investigation&lt;/h3&gt;





&lt;p&gt;With an appropriately permissioned read-only identity:&lt;/p&gt;





&lt;pre&gt;
Which sites are using this structure?

Which products are currently out of stock?

Which content was modified this week?

How many Object entries are in each status?
&lt;/pre&gt;





&lt;h3&gt;Environment Setup&lt;/h3&gt;





&lt;p&gt;In a development environment:&lt;/p&gt;





&lt;pre&gt;
Create the Object definitions, catalogs,
sample data and initial content needed for
this application.
&lt;/pre&gt;





&lt;p&gt;Then review the resulting configuration and promote it through your normal delivery process.&lt;/p&gt;





&lt;p&gt;Another experiment I want to tackle separately is using MCP to assist with migration from Liferay's legacy CMS into the new CMS. That becomes much more than copying records because structures, content formats, referenced assets, and dependencies all need to be transformed. That deserves its own investigation rather than a paragraph here.&lt;/p&gt;





&lt;h2&gt;MCP Changes the Interface, Not the Platform&lt;/h2&gt;





&lt;p&gt;This may be the most important thing I took away from the experiment.&lt;/p&gt;





&lt;p&gt;MCP does not replace Liferay's architecture.&lt;/p&gt;





&lt;p&gt;Claude was still working with:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Liferay users.&lt;/li&gt;
	&lt;li&gt;Liferay permissions.&lt;/li&gt;
	&lt;li&gt;Headless APIs.&lt;/li&gt;
	&lt;li&gt;Objects.&lt;/li&gt;
	&lt;li&gt;CMS.&lt;/li&gt;
	&lt;li&gt;Commerce.&lt;/li&gt;
	&lt;li&gt;Batch processing.&lt;/li&gt;
	&lt;li&gt;External reference codes.&lt;/li&gt;
	&lt;li&gt;Normal platform services.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;The architecture is still:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126836609" src="https://liferay.dev/documents/portlet_file_entry/14/mcp-11.png/ed1e5fcf-7888-01c4-e1e5-58ef403debc9"&gt;&lt;/p&gt;





&lt;p&gt;We're not building a separate &amp;quot;AI version&amp;quot; of Liferay.&lt;/p&gt;





&lt;p&gt;Instead, capabilities that already exist in the platform become discoverable and operable by an AI client.&lt;/p&gt;





&lt;p&gt;That is why I think this is more interesting than simply adding another chatbot feature.&lt;/p&gt;





&lt;h2&gt;Final Thoughts&lt;/h2&gt;





&lt;p&gt;I started this experiment without really knowing what I would find.&lt;/p&gt;





&lt;p&gt;What convinced me wasn't the fact that Claude could make an API call.&lt;/p&gt;





&lt;p&gt;It was watching Claude create a Liferay Object definition, publish it, discover the newly generated API through MCP, and then immediately start using that API.&lt;/p&gt;





&lt;p&gt;It was watching the same agent move across several Commerce APIs to build a catalog-to-storefront workflow.&lt;/p&gt;





&lt;p&gt;And it was seeing that the security model still comes back to familiar Liferay concepts such as identities, roles, permissions, profiles, and environment separation.&lt;/p&gt;





&lt;p&gt;For development and UAT, I can see real value in write-capable agents helping create application models, seed environments, configure Commerce, generate content, and automate repetitive platform tasks.&lt;/p&gt;





&lt;p&gt;For production, I am more interested in narrowly permissioned, read-only agents that can answer questions about the actual environment without being able to change it.&lt;/p&gt;





&lt;p&gt;The question is no longer whether an AI can talk to Liferay.&lt;/p&gt;





&lt;p&gt;With MCP, it can.&lt;/p&gt;





&lt;p&gt;The more interesting question is:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Which parts of Liferay do we want an agent to operate, under which identity, and in which environment?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;That is the experiment I think is worth continuing.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2026-09-28T16:04:00Z</dc:date>
  </entry>
  <entry>
    <title>Liferay Design Libraries</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126824933" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126824933</id>
    <updated>2026-09-25T04:57:05Z</updated>
    <published>2026-09-25T04:02:00Z</published>
    <summary type="html">&lt;p&gt;I have been asking for something like Design Libraries in Liferay for years.&lt;/p&gt;





&lt;p&gt;And I know I am not the only one.&lt;/p&gt;





&lt;p&gt;Imagine you have a fragment that provides a standard hero, product card, call-to-action, navigation element, or some other piece of your organization's design. You use that fragment across ten sites.&lt;/p&gt;





&lt;p&gt;Until now, those ten sites generally meant ten copies of that fragment.&lt;/p&gt;





&lt;p&gt;Then somebody finds a bug.&lt;/p&gt;





&lt;p&gt;Or the design team changes the markup.&lt;/p&gt;





&lt;p&gt;Or accessibility requirements change.&lt;/p&gt;





&lt;p&gt;Or somebody decides the component needs one more configuration option.&lt;/p&gt;





&lt;p&gt;Now you have ten copies to update.&lt;/p&gt;





&lt;p&gt;And, of course, they are not really ten identical copies anymore because someone changed the version in Site 4 six months ago, somebody fixed a problem directly in Site 7, and nobody remembers why Site 9 looks slightly different.&lt;/p&gt;





&lt;p&gt;That is not reuse. That is duplication with a maintenance plan attached.&lt;/p&gt;





&lt;p&gt;Design Libraries finally give us a better option.&lt;/p&gt;





&lt;p&gt;A Design Library is an instance-level container for design resources that can be shared by multiple sites. Today that means &lt;strong&gt;style books and page fragments&lt;/strong&gt;, while each site can still maintain its own local style books and fragments alongside the shared resources.&lt;/p&gt;





&lt;p&gt;That distinction is important. Design Libraries do not remove site-level design resources. They add another scope.&lt;/p&gt;





&lt;p&gt;And that changes the architecture considerably.&lt;/p&gt;





&lt;h2&gt;We've Seen This Pattern Before&lt;/h2&gt;





&lt;p&gt;If the idea sounds familiar, it should.&lt;/p&gt;





&lt;p&gt;Asset Libraries introduced the same general concept for content.&lt;/p&gt;





&lt;p&gt;Instead of putting reusable content directly inside Site A and then discovering that Site B needs a copy, you can put that content somewhere independent of either site and connect both sites to it.&lt;/p&gt;





&lt;p&gt;That is why I have recommended Asset Libraries even in implementations that initially have only one site.&lt;/p&gt;





&lt;p&gt;If you know content is organizational rather than site-specific, storing it outside the site gives you a cleaner boundary from the beginning.&lt;/p&gt;





&lt;p&gt;Today you may have:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126824946" src="https://liferay.dev/documents/portlet_file_entry/14/dl-01.png/a04739f9-e9ab-46b4-a928-b91bc0a19369"&gt;&lt;/p&gt;





&lt;p&gt;Six months later somebody asks for:&lt;/p&gt;





&lt;pre&gt;
Corporate Site
Partner Site
Support Site
Regional Site&lt;/pre&gt;





&lt;p&gt;If the content belongs to the Corporate Site, you now have a migration problem.&lt;/p&gt;





&lt;p&gt;If it already lives independently:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126824957" src="https://liferay.dev/documents/portlet_file_entry/14/dl-02.png/87754132-ba7d-d564-328b-cea3b4fbb810"&gt;&lt;/p&gt;





&lt;p&gt;there is nothing particularly special about adding another consumer.&lt;/p&gt;





&lt;p&gt;Design Libraries bring that same architectural idea to design resources.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Asset Libraries let us centralize reusable content. Design Libraries let us centralize reusable design. &lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;In fact, Liferay implements a Design Library as a type of Asset Library, which is why concepts such as independent membership, roles, and LAR import/export feel familiar.&lt;/p&gt;





&lt;h2&gt;The Problem Design Libraries Solve&lt;/h2&gt;





&lt;p&gt;Consider a company with twelve regional sites.&lt;/p&gt;





&lt;p&gt;Each uses the same corporate header fragment.&lt;/p&gt;





&lt;p&gt;Without a Design Library:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126824968" src="https://liferay.dev/documents/portlet_file_entry/14/dl-03.png/b28200dc-4123-8293-8ebc-b7d5c7160b99"&gt;&lt;/p&gt;





&lt;p&gt;Every copy can drift independently.&lt;/p&gt;





&lt;p&gt;With a Design Library:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126824981" src="https://liferay.dev/documents/portlet_file_entry/14/dl-04.png/16420adb-9eba-6017-9573-4b1db4ba5a14"&gt;&lt;/p&gt;





&lt;p&gt;The shared fragment is managed centrally.&lt;/p&gt;





&lt;p&gt;The same applies to style books. A brand team can define a shared set of design tokens once and expose that style book to the sites that should use it.&lt;/p&gt;





&lt;p&gt;When multiple sites share one visual identity, maintaining the same resources independently in every site leads to repeated changes and, eventually, divergence.&lt;/p&gt;





&lt;p&gt;That is exactly the problem I have seen in real implementations.&lt;/p&gt;





&lt;h2&gt;Enabling Design Libraries&lt;/h2&gt;





&lt;p&gt;Design Libraries arrive in Liferay DXP 2026.Q3 as a release feature.&lt;/p&gt;





&lt;p&gt;The current feature flag is:&lt;/p&gt;





&lt;pre&gt;
LPD-57283&lt;/pre&gt;





&lt;p&gt;An instance administrator must enable it before the Design Libraries application appears.&lt;/p&gt;





&lt;p&gt;Once enabled, Design Libraries is available from:&lt;/p&gt;





&lt;pre&gt;
Global Menu
  -&amp;gt; Applications
    -&amp;gt; Design Libraries&lt;/pre&gt;





&lt;p&gt;I have been testing this on DXP 2026.Q3, and the supported use cases described in the documentation are working as advertised.&lt;/p&gt;





&lt;h2&gt;What Can a Design Library Contain?&lt;/h2&gt;





&lt;p&gt;In the initial implementation, Design Libraries support two major categories of design resources:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Style Books&lt;/li&gt;
	&lt;li&gt;Page Fragments&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;For fragments, you can create both basic fragments and form fragments. They use the same HTML, CSS, and JavaScript model used for site-level fragments.&lt;/p&gt;





&lt;p&gt;Fragments continue to live inside fragment sets as they do today.&lt;/p&gt;





&lt;p&gt;You can also:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Create fragment sets&lt;/li&gt;
	&lt;li&gt;Import fragments from ZIP files&lt;/li&gt;
	&lt;li&gt;Export fragment sets&lt;/li&gt;
	&lt;li&gt;Manage fragments from the library&lt;/li&gt;
	&lt;li&gt;Publish fragments before exposing them to connected sites&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;There is one notable limitation: &lt;strong&gt;fragment compositions cannot currently live in a Design Library.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;More on the broader set of design resources later.&lt;/p&gt;





&lt;h2&gt;Creating a Design Library&lt;/h2&gt;





&lt;p&gt;Creating one is straightforward.&lt;/p&gt;





&lt;p&gt;From:&lt;/p&gt;





&lt;pre&gt;
Global Menu
  -&amp;gt; Applications
    -&amp;gt; Design Libraries&lt;/pre&gt;





&lt;p&gt;select &lt;strong&gt;New Design Library&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;A Design Library has:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;A name&lt;/li&gt;
	&lt;li&gt;An optional description&lt;/li&gt;
	&lt;li&gt;A Group ID assigned by Liferay&lt;/li&gt;
	&lt;li&gt;An External Reference Code&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;The External Reference Code is particularly useful for automation and environment promotion because it can be used through headless APIs and to identify the corresponding library in another environment.&lt;/p&gt;





&lt;p&gt;That matters if your deployment model looks something like:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126824992" src="https://liferay.dev/documents/portlet_file_entry/14/dl-05.png/db1cb5df-be55-5b17-273b-37f4733dedc6"&gt;&lt;/p&gt;





&lt;p&gt;Design Libraries also support Liferay's normal LAR export/import mechanism.&lt;/p&gt;





&lt;p&gt;So these are not just convenient UI containers. They participate in the normal operational lifecycle we expect from Liferay resources.&lt;/p&gt;





&lt;h2&gt;Creating Shared Fragments&lt;/h2&gt;





&lt;p&gt;Inside the Design Library you can create a fragment much like you would inside a site.&lt;/p&gt;





&lt;p&gt;For example:&lt;/p&gt;





&lt;pre&gt;
&amp;lt;div class=&amp;quot;shared-callout&amp;quot;&amp;gt;
  &amp;lt;h2&amp;gt;Need Help?&amp;lt;/h2&amp;gt;

  &amp;lt;p&amp;gt;
    Talk to one of our specialists.
  &amp;lt;/p&amp;gt;

  &amp;lt;a class=&amp;quot;btn btn-primary&amp;quot; href=&amp;quot;${configuration.url}&amp;quot;&amp;gt;
    ${configuration.label}
  &amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;





&lt;p&gt;Add the CSS, JavaScript, configuration, editable fields, mappings, and other fragment capabilities you normally use.&lt;/p&gt;





&lt;p&gt;Then publish it.&lt;/p&gt;





&lt;p&gt;This publishing step matters. A newly created fragment begins as a draft, and connected sites cannot use it until it has been published.&lt;/p&gt;





&lt;p&gt;Once published, it becomes available across the sites connected to the Design Library.&lt;/p&gt;





&lt;h2&gt;Connecting Sites&lt;/h2&gt;





&lt;p&gt;Connecting a site does not automatically change anything about the site.&lt;/p&gt;





&lt;p&gt;From the Design Library:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126825003" src="https://liferay.dev/documents/portlet_file_entry/14/dl-06.png/4ec18571-1a59-75bd-704c-6a3f6417efc1"&gt;&lt;/p&gt;





&lt;p&gt;find the site and connect it.&lt;/p&gt;





&lt;p&gt;The library's resources then become available to that site. Existing pages do not suddenly change their style books or receive new fragments.&lt;/p&gt;





&lt;p&gt;I think this is the correct behavior.&lt;/p&gt;





&lt;p&gt;Connecting a library should mean:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;This site may consume these resources.&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;It should not mean:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;Apply these resources everywhere immediately.&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;That keeps adoption explicit.&lt;/p&gt;





&lt;h2&gt;Shared and Local Resources Can Coexist&lt;/h2&gt;





&lt;p&gt;A site does not have to choose between local design resources and Design Library resources.&lt;/p&gt;





&lt;p&gt;Suppose Site A has:&lt;/p&gt;





&lt;pre&gt;
Site A Fragments

  Local Search Result
  Regional Promotion
  Country Selector&lt;/pre&gt;





&lt;p&gt;and the shared Design Library contains:&lt;/p&gt;





&lt;pre&gt;
Corporate Design Library

  Corporate Header
  Corporate Footer
  Product Card
  Standard CTA&lt;/pre&gt;





&lt;p&gt;After connecting the library, the site's page builder can use both.&lt;/p&gt;





&lt;p&gt;That gives us a useful architectural distinction.&lt;/p&gt;





&lt;h3&gt;Put it in the site when:&lt;/h3&gt;





&lt;ul&gt;
	&lt;li&gt;The design belongs specifically to that site.&lt;/li&gt;
	&lt;li&gt;A local team owns it.&lt;/li&gt;
	&lt;li&gt;Other sites should not inherit its lifecycle.&lt;/li&gt;
&lt;/ul&gt;





&lt;h3&gt;Put it in a Design Library when:&lt;/h3&gt;





&lt;ul&gt;
	&lt;li&gt;Multiple sites should use it.&lt;/li&gt;
	&lt;li&gt;A central team owns it.&lt;/li&gt;
	&lt;li&gt;You want one authoritative implementation.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;This is much better than treating every fragment as either completely global or completely local.&lt;/p&gt;





&lt;div class="overflow-auto portlet-msg-info"&gt;NOTE: I would still argue you're better off always keeping design assets in a design library. The Site A Fragments above may only be used on Site A now, but next week Site Z might be a similar copy as A and want the same fragments. If they're already in the design library, no worries, just share with Site Z and you're done. If not in a design library you have to copy / move, maintain the current copy in A or replace all A usage of the fragment with the shared library, ... Time, money, and effort lost that could have been easily planned for.&lt;/div&gt;





&lt;h2&gt;Sharing Style Books&lt;/h2&gt;





&lt;p&gt;Style books work particularly well with the Design Library model.&lt;/p&gt;





&lt;p&gt;When creating one, you first select the theme the style book applies to.&lt;/p&gt;





&lt;p&gt;Its available frontend tokens come from that theme's frontend token definition.&lt;/p&gt;





&lt;p&gt;This means theme compatibility still matters.&lt;/p&gt;





&lt;p&gt;If you create a style book for the Classic Theme, it is not automatically applicable to a page using the CMS Theme. Only Design Library style books matching the page's theme appear as available selections.&lt;/p&gt;





&lt;p&gt;That is a sensible boundary.&lt;/p&gt;





&lt;p&gt;A Design Library centralizes the style book. It does not somehow make unrelated themes share a common token model.&lt;/p&gt;





&lt;h2&gt;Style Book Updates Are Central&lt;/h2&gt;





&lt;p&gt;This is where Design Libraries become particularly powerful.&lt;/p&gt;





&lt;p&gt;Suppose these sites all use the same library style book:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126825061" src="https://liferay.dev/documents/portlet_file_entry/14/dl-08.png/15bb7e73-a3b3-7bd0-aeac-2ed3dcb2747f"&gt;&lt;/p&gt;





&lt;p&gt;Change a token:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126825072" src="https://liferay.dev/documents/portlet_file_entry/14/dl-07.png/d730cc12-a3cd-65ce-6914-52fb4800739c"&gt;&lt;/p&gt;





&lt;p&gt;Publish the style book.&lt;/p&gt;





&lt;p&gt;Every page using that style book receives the new value.&lt;/p&gt;





&lt;p&gt;The site cannot independently override that Design Library style book, and the update is not separately staged for each site.&lt;/p&gt;





&lt;p&gt;That is both a feature and an architectural decision.&lt;/p&gt;





&lt;p&gt;If the corporate design team owns the corporate style book, that is probably exactly what you want.&lt;/p&gt;





&lt;p&gt;But it means you should also treat publishing that style book with the same care you would give any other shared dependency.&lt;/p&gt;





&lt;h2&gt;Fragments Work Differently&lt;/h2&gt;





&lt;p&gt;Fragments have intentionally different propagation behavior.&lt;/p&gt;





&lt;p&gt;This detail is important.&lt;/p&gt;





&lt;p&gt;When you place a fragment on a page, that page receives a copy of the fragment's HTML, CSS, and JavaScript.&lt;/p&gt;





&lt;p&gt;So imagine we publish:&lt;/p&gt;





&lt;pre&gt;
Corporate Header v1&lt;/pre&gt;





&lt;p&gt;and use it on twelve sites.&lt;/p&gt;





&lt;p&gt;Then we modify the Design Library fragment:&lt;/p&gt;





&lt;pre&gt;
Corporate Header v2&lt;/pre&gt;





&lt;p&gt;Publishing Version 2 does &lt;strong&gt;not&lt;/strong&gt; immediately replace every existing fragment instance.&lt;/p&gt;





&lt;p&gt;Instead, the Design Library can show where that fragment is being used, and you explicitly propagate the update.&lt;/p&gt;





&lt;p&gt;So the two resources have different lifecycle semantics:&lt;/p&gt;





&lt;table border="1" cellpadding="3" cellspacing="3"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;Resource&lt;/th&gt;
			&lt;th&gt;Publishing a Change&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;Style Book&lt;/td&gt;
			&lt;td&gt;Pages using it receive the updated values.&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;Fragment&lt;/td&gt;
			&lt;td&gt;Existing instances remain unchanged until the update is propagated.&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt;I like this distinction.&lt;/p&gt;





&lt;p&gt;Changing a color token across twenty sites is one thing.&lt;/p&gt;





&lt;p&gt;Replacing executable HTML, CSS, and JavaScript across twenty sites is another.&lt;/p&gt;





&lt;p&gt;Making fragment propagation deliberate gives administrators the opportunity to understand the impact before pushing the change everywhere.&lt;/p&gt;





&lt;h2&gt;Disconnecting a Site&lt;/h2&gt;





&lt;p&gt;The differences become even clearer when you disconnect a site from a Design Library.&lt;/p&gt;





&lt;p&gt;If a page is using a Design Library style book, the page falls back to the site's default style book when that library is disconnected.&lt;/p&gt;





&lt;p&gt;Fragments behave differently.&lt;/p&gt;





&lt;p&gt;An existing fragment continues rendering because the page already contains its own copy of the fragment code.&lt;/p&gt;





&lt;p&gt;However:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;The fragment disappears from the site's available fragments.&lt;/li&gt;
	&lt;li&gt;You cannot place additional copies.&lt;/li&gt;
	&lt;li&gt;Future library changes can no longer be propagated to that site.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;That tells us quite a bit about how Design Libraries are implemented.&lt;/p&gt;





&lt;p&gt;They are not simply runtime references to some central fragment.&lt;/p&gt;





&lt;p&gt;They are also a distribution mechanism.&lt;/p&gt;





&lt;h2&gt;Managing Design Library Members&lt;/h2&gt;





&lt;p&gt;Another important part of the feature is that Design Libraries have their own membership.&lt;/p&gt;





&lt;p&gt;This means a site's administrators do not automatically become administrators of the Design Library.&lt;/p&gt;





&lt;p&gt;You can add:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Individual users&lt;/li&gt;
	&lt;li&gt;User groups&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Members automatically receive the &lt;strong&gt;Design Library Member&lt;/strong&gt; role. Additional Design Library roles determine what they can actually do.&lt;/p&gt;





&lt;p&gt;The separation is useful.&lt;/p&gt;





&lt;p&gt;Consider an organization with:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126825083" src="https://liferay.dev/documents/portlet_file_entry/14/dl-09.png/6789ed08-1609-202a-e8a1-1559954a980c"&gt;&lt;/p&gt;





&lt;p&gt;The individual site teams can build pages and consume the shared design resources.&lt;/p&gt;





&lt;p&gt;They do not necessarily need permission to modify the shared resources themselves.&lt;/p&gt;





&lt;p&gt;The Design Library becomes an actual governance boundary.&lt;/p&gt;





&lt;p&gt;Library roles are independent from site roles, so a site administrator may be able to use a library style book without having permission to edit the Design Library itself.&lt;/p&gt;





&lt;p&gt;That is exactly what I would want in a large implementation.&lt;/p&gt;





&lt;h2&gt;This Is Only the Beginning, I Hope&lt;/h2&gt;





&lt;p&gt;There is one thing I would really like to see expanded.&lt;/p&gt;





&lt;p&gt;Today, if you open the Design section for a Liferay site, you find more than just two kinds of resources.&lt;/p&gt;





&lt;p&gt;You may have resources such as:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126825094" src="https://liferay.dev/documents/portlet_file_entry/14/dl-10.png/43f8e66a-8700-3d77-2712-47477c0fca80"&gt;&lt;/p&gt;





&lt;p&gt;And there are other reusable design concepts buried within these sections as well:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Master Pages&lt;/li&gt;
	&lt;li&gt;Widget Templates&lt;/li&gt;
	&lt;li&gt;Information Templates&lt;/li&gt;
	&lt;li&gt;Page Templates&lt;/li&gt;
	&lt;li&gt;Other presentation resources&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Today, Design Libraries cover the first major pieces of this problem: &lt;strong&gt;style books and fragments&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;I hope that is the beginning rather than the final boundary of the feature.&lt;/p&gt;





&lt;p&gt;The same argument that applies to fragments applies to many of these other resources.&lt;/p&gt;





&lt;p&gt;If five sites all need the same page template, why should I maintain five copies?&lt;/p&gt;





&lt;p&gt;If twelve sites share a master page, why should those implementations be allowed to drift?&lt;/p&gt;





&lt;p&gt;If an organization has a centrally governed widget template, why shouldn't that template have an organizational scope rather than belonging to an arbitrary site?&lt;/p&gt;





&lt;p&gt;Design Libraries establish the architectural home for solving those problems.&lt;/p&gt;





&lt;p&gt;Now I would like to see more design resource types move into that home.&lt;/p&gt;





&lt;h2&gt;Tradeoffs&lt;/h2&gt;





&lt;p&gt;Centralization is useful, but it is not free.&lt;/p&gt;





&lt;p&gt;A Design Library creates dependencies between sites and centrally managed resources.&lt;/p&gt;





&lt;p&gt;That means teams should think about ownership and lifecycle.&lt;/p&gt;





&lt;h3&gt;Central Control&lt;/h3&gt;





&lt;p&gt;A central team can maintain the canonical implementation.&lt;/p&gt;





&lt;p&gt;That prevents drift.&lt;/p&gt;





&lt;p&gt;It also means a bad change can affect multiple sites.&lt;/p&gt;





&lt;h3&gt;Shared Style Books&lt;/h3&gt;





&lt;p&gt;Style book changes propagate directly after publishing.&lt;/p&gt;





&lt;p&gt;That is excellent for brand consistency but means publishing deserves appropriate review.&lt;/p&gt;





&lt;h3&gt;Shared Fragments&lt;/h3&gt;





&lt;p&gt;Fragment changes require explicit propagation.&lt;/p&gt;





&lt;p&gt;That creates a little more operational work but provides a safer rollout model for code-backed design components.&lt;/p&gt;





&lt;h3&gt;Theme Compatibility&lt;/h3&gt;





&lt;p&gt;Style books are still tied to frontend token definitions from their themes.&lt;/p&gt;





&lt;p&gt;A Design Library does not eliminate that architectural relationship.&lt;/p&gt;





&lt;h3&gt;Not Every Design Resource Is Supported Yet&lt;/h3&gt;





&lt;p&gt;Today the feature focuses on fragments and style books.&lt;/p&gt;





&lt;p&gt;Organizations still need another strategy for other reusable design resources.&lt;/p&gt;





&lt;p&gt;None of these are arguments against Design Libraries.&lt;/p&gt;





&lt;p&gt;They are reasons to understand the feature as part of your architecture instead of treating it as another folder for fragments.&lt;/p&gt;





&lt;h2&gt;Final Thoughts&lt;/h2&gt;





&lt;p&gt;Design Libraries solve a problem that has existed in multi-site Liferay implementations for a long time.&lt;/p&gt;





&lt;p&gt;We have always been able to build reusable fragments.&lt;/p&gt;





&lt;p&gt;What we have not had is a good way to manage the &lt;strong&gt; same fragment as a shared organizational resource across multiple sites &lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;That difference matters.&lt;/p&gt;





&lt;p&gt;Copying something ten times is not reuse.&lt;/p&gt;





&lt;p&gt;Putting it somewhere once, assigning ownership to it, making it available to the sites that need it, and controlling how changes move to those sites is reuse.&lt;/p&gt;





&lt;p&gt;Asset Libraries established that model for reusable content.&lt;/p&gt;





&lt;p&gt;Design Libraries now extend the same idea into the design layer.&lt;/p&gt;





&lt;p&gt;For organizations running multiple Liferay sites, I think this is going to simplify both implementation and long-term maintenance considerably.&lt;/p&gt;





&lt;p&gt;My next experiment is going to be less about whether Design Libraries work. I've already tested the supported use cases in DXP 2026.Q3, and they do.&lt;/p&gt;





&lt;p&gt;The more interesting question now is how far this model can go.&lt;/p&gt;





&lt;p&gt;Fragments and style books are a strong start.&lt;/p&gt;





&lt;p&gt;Page templates, master pages, widget templates, information templates, and the rest of Liferay's reusable presentation layer would make it much more powerful.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2026-09-25T04:02:00Z</dc:date>
  </entry>
  <entry>
    <title>Cookie Consent Management</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126820423" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126820423</id>
    <updated>2026-09-23T20:27:42Z</updated>
    <published>2026-09-23T17:03:00Z</published>
    <summary type="html">&lt;p&gt;Cookies are one of those web technologies that start simple and become complicated very quickly.&lt;/p&gt;





&lt;p&gt;Setting a cookie is easy. The difficult part is deciding whether you are allowed to set it, explaining what it is used for, recording the visitor's consent, preventing code from running before that consent exists, and making sure backend behavior follows the same decision.&lt;/p&gt;





&lt;p&gt;Liferay has built-in support for cookie consent management and has continued expanding it over recent releases. It can present a cookie banner and configuration panel, categorize cookies, control whether consent-sensitive cookies are created, and provide a Cookie Policy page showing visitors what cookies the site uses.&lt;/p&gt;





&lt;p&gt;Starting with &lt;strong&gt;Liferay DXP 2026.Q3&lt;/strong&gt;, there is another important option: integrating Liferay with an external Consent Management Platform, or CMP.&lt;/p&gt;





&lt;p&gt;That is particularly useful for organizations that already use products such as OneTrust, Cookiebot, Didomi, Usercentrics, or another enterprise CMP across their web properties.&lt;/p&gt;





&lt;p&gt;Before getting to that new integration, though, it helps to understand how Liferay thinks about cookie consent in the first place.&lt;/p&gt;





&lt;h2&gt;Liferay's Cookie Consent Model&lt;/h2&gt;





&lt;p&gt;Liferay divides cookies into four consent categories:&lt;/p&gt;





&lt;p&gt;&lt;a
    href="https://learn.liferay.com/w/dxp/security-and-administration/users-and-permissions/managing-user-data/managing-privacy-settings/liferays-default-cookies-reference"
      rel="noopener noreferrer"&gt;&lt;img data-fileentryid="126820554" src="https://liferay.dev/documents/portlet_file_entry/14/types.png/786f6607-90fe-a7d0-7ff7-4251d850a8bb"&gt;&lt;/a&gt;&lt;/p&gt;





&lt;p&gt;The important part for developers is that these categories are more than labels displayed in a cookie banner. They are part of Liferay's cookie handling APIs.&lt;/p&gt;





&lt;p&gt;Your application can tell Liferay:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;I want to create this cookie, but it is a Functional cookie.&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;Liferay can then determine whether the visitor's consent permits it.&lt;/p&gt;





&lt;h2&gt;Liferay's Built-In Consent Manager&lt;/h2&gt;





&lt;p&gt;Liferay includes its own &lt;a
    href="https://learn.liferay.com/w/dxp/security-and-administration/users-and-permissions/managing-user-data/managing-privacy-settings" rel="noopener noreferrer"&gt;Consent Manager&lt;/a&gt;. It provides the cookie banner and configuration panel visitors use to select which types of cookies they want to allow.&lt;/p&gt;





&lt;p&gt;It can operate in two basic modes. With &lt;strong&gt;Explicit Cookie Consent Mode&lt;/strong&gt; enabled, non-essential cookies wait until the visitor explicitly permits them. Without it, cookies are enabled until the visitor opts out.&lt;/p&gt;





&lt;p&gt;Recent releases have added capabilities such as consent renewal periods, storing authenticated users' consent preferences, Global Privacy Control support, and a floating control that lets users reopen their consent preferences.&lt;/p&gt;





&lt;p&gt;Liferay's built-in Consent Manager is not intended to be a complete enterprise CMP with capabilities such as vendor scanning, automated compliance workflows, or multi-domain consent management.&lt;/p&gt;





&lt;p&gt;For some sites, Liferay's built-in capabilities are exactly what is needed.&lt;/p&gt;





&lt;p&gt;For others, particularly larger organizations with multiple websites and an established privacy program, consent may already be managed by an external CMP.&lt;/p&gt;





&lt;p&gt;We'll get to that shortly.&lt;/p&gt;





&lt;h2&gt;Creating Consent-Aware Cookies&lt;/h2&gt;





&lt;p&gt;If you are writing custom functionality that creates cookies, you should not bypass Liferay and write the cookie directly.&lt;/p&gt;





&lt;p&gt;For example, this works in a browser:&lt;/p&gt;





&lt;pre&gt;
document.cookie = 'my-preference=true';&lt;/pre&gt;





&lt;p&gt;But Liferay has no opportunity to enforce the visitor's cookie preference before that cookie is created.&lt;/p&gt;





&lt;p&gt;Instead, use Liferay's consent-aware cookie APIs.&lt;/p&gt;





&lt;h3&gt;From JavaScript&lt;/h3&gt;





&lt;p&gt;For client-side code, &lt;code&gt;Liferay.Util.Cookie.set()&lt;/code&gt; accepts the cookie's consent type.&lt;/p&gt;





&lt;p&gt;For example, suppose a custom feature stores an optional display preference:&lt;/p&gt;





&lt;pre&gt;
const expires = new Date();

expires.setFullYear(expires.getFullYear() + 1);

const cookieSet = Liferay.Util.Cookie.set(
  'my-display-preference',
  'compact',
  Liferay.Util.Cookie.TYPES.FUNCTIONAL,
  {
    expires,
    secure: true,
  }
);&lt;/pre&gt;





&lt;p&gt;The available types correspond to Liferay's four consent categories:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;Liferay.Util.Cookie.TYPES.NECESSARY&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;Liferay.Util.Cookie.TYPES.FUNCTIONAL&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;Liferay.Util.Cookie.TYPES.PERFORMANCE&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;Liferay.Util.Cookie.TYPES.PERSONALIZATION&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;The important difference is that Liferay can now take the visitor's consent into account before the cookie is created.&lt;/p&gt;





&lt;p&gt;That means custom code should generally prefer the Liferay API over &lt;code&gt;document.cookie&lt;/code&gt; when creating cookies subject to consent.&lt;/p&gt;





&lt;h3&gt;From Java&lt;/h3&gt;





&lt;p&gt;Server-side code has the same capability.&lt;/p&gt;





&lt;p&gt;Liferay exposes &lt;code&gt;CookiesManagerUtil.addCookie()&lt;/code&gt; with a consent type:&lt;/p&gt;





&lt;pre&gt;
import com.liferay.portal.kernel.cookies.CookiesManagerUtil;
import 
  com.liferay.portal.kernel.cookies.constants.CookiesConstants;

import jakarta.servlet.http.Cookie;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

public void addPreferenceCookie(
  HttpServletRequest httpServletRequest,
  HttpServletResponse httpServletResponse) {

  Cookie cookie = new Cookie(
    &amp;quot;my-display-preference&amp;quot;, &amp;quot;compact&amp;quot;);

  cookie.setHttpOnly(true);
  cookie.setMaxAge(365 * 24 * 60 * 60);
  cookie.setPath(&amp;quot;/&amp;quot;);

  CookiesManagerUtil.addCookie(
    CookiesConstants.CONSENT_TYPE_FUNCTIONAL,
    cookie,
    httpServletRequest,
    httpServletResponse,
    true);
}&lt;/pre&gt;





&lt;p&gt;The available consent constants are:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;CookiesConstants.CONSENT_TYPE_NECESSARY&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;CookiesConstants.CONSENT_TYPE_FUNCTIONAL&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;CookiesConstants.CONSENT_TYPE_PERFORMANCE&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;CookiesConstants.CONSENT_TYPE_PERSONALIZATION&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;The important engineering decision is choosing the correct category.&lt;/p&gt;





&lt;p&gt;If your feature works perfectly well without the cookie, calling it Necessary just to make sure it gets created defeats the purpose of the consent model.&lt;/p&gt;





&lt;h2&gt;Don't Forget the Cookie Policy&lt;/h2&gt;





&lt;p&gt;Controlling whether a cookie can be created is only part of the implementation.&lt;/p&gt;





&lt;p&gt;Visitors should also be able to find out what that cookie does.&lt;/p&gt;





&lt;p&gt;Liferay provides a &lt;a
    href="https://learn.liferay.com/w/dxp/sites/creating-pages/understanding-pages/types-of-utility-pages#cookie-policy" rel="noopener noreferrer"&gt;&lt;strong&gt;Cookie Policy utility page&lt;/strong&gt;&lt;/a&gt; containing sections for the same four categories. The page lists cookies along with their purpose and duration.&lt;/p&gt;





&lt;p&gt;When your application introduces a cookie that Liferay does not already know about, add it to the appropriate section of the Cookie Policy page:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;Navigate to &lt;strong&gt;Site Administration → Site Builder → Pages&lt;/strong&gt;.&lt;/li&gt;
	&lt;li&gt;Open the &lt;strong&gt;Cookie Policy&lt;/strong&gt; utility page.&lt;/li&gt;
	&lt;li&gt;Locate the appropriate cookie category.&lt;/li&gt;
	&lt;li&gt;Click &lt;strong&gt;Add&lt;/strong&gt;.&lt;/li&gt;
	&lt;li&gt;Enter the cookie's information and save it.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;So if we create:&lt;/p&gt;





&lt;pre&gt;
my-display-preference
&lt;/pre&gt;





&lt;p&gt;as a Functional cookie, it should also be documented in the Functional section of the Cookie Policy.&lt;/p&gt;





&lt;p&gt;That gives us both parts of the contract:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126820640" src="https://liferay.dev/documents/portlet_file_entry/14/enforcement-plus-documentation+%281%29.png/f9480421-8b1e-64eb-8cd7-da05b326236d"&gt;&lt;/p&gt;





&lt;h2&gt;Third-Party Content Is Slightly Different&lt;/h2&gt;





&lt;p&gt;Your code is not always the code creating the cookie.&lt;/p&gt;





&lt;p&gt;Consider an embedded analytics script, YouTube video, map, chat client, or another external service.&lt;/p&gt;





&lt;p&gt;Once the browser loads that resource, the third party may create cookies of its own.&lt;/p&gt;





&lt;p&gt;For that case, Liferay provides the &lt;a
    href="https://learn.liferay.com/w/dxp/security-and-administration/users-and-permissions/managing-user-data/managing-third-party-cookies#using-the-third-party-cookie-api" rel="noopener noreferrer"&gt;Third-Party Cookie API&lt;/a&gt;. This API has been available since DXP 2024.Q1/Portal GA112.&lt;/p&gt;





&lt;p&gt;Suppose we normally have:&lt;/p&gt;





&lt;pre&gt;
&amp;lt;iframe
  src=&amp;quot;https://video.example.com/embed/12345&amp;quot;
&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/pre&gt;





&lt;p&gt;The problem is that the browser immediately loads that URL.&lt;/p&gt;





&lt;p&gt;Instead, we can write:&lt;/p&gt;





&lt;pre&gt;
&amp;lt;iframe
  data-src=&amp;quot;https://video.example.com/embed/12345&amp;quot;
  data-third-party-cookie=&amp;quot;CONSENT_TYPE_FUNCTIONAL&amp;quot;
&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/pre&gt;





&lt;p&gt;Liferay watches the DOM for &lt;code&gt;data-third-party-cookie&lt;/code&gt;. If the corresponding consent exists, the resource can be loaded. Otherwise, it remains blocked.&lt;/p&gt;





&lt;p&gt;The same idea works with scripts:&lt;/p&gt;





&lt;pre&gt;
&amp;lt;script
  data-third-party-cookie=&amp;quot;CONSENT_TYPE_PERFORMANCE&amp;quot;
  src=&amp;quot;https://analytics.example.com/analytics.js&amp;quot;
  type=&amp;quot;text/plain&amp;quot;
&amp;gt;&amp;lt;/script&amp;gt;
&lt;/pre&gt;





&lt;p&gt;Using &lt;code&gt;type=&amp;quot;text/plain&amp;quot;&lt;/code&gt; keeps the browser from executing the script normally. Liferay can activate it when the corresponding consent exists.&lt;/p&gt;





&lt;p&gt;For resources such as images, embeds, and iframes, &lt;code&gt;src&lt;/code&gt; becomes &lt;code&gt;data-src&lt;/code&gt;. For links, &lt;code&gt;href&lt;/code&gt; becomes &lt;code&gt;data-href&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;At this point, Liferay has a fairly complete internal model:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126820652" src="https://liferay.dev/documents/portlet_file_entry/14/consent-model.png/bf567161-1bbd-1602-eaee-c55ec5f0e06b"&gt;&lt;/p&gt;





&lt;p&gt;But there is still one important question.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;What happens when you're not using Liferay to manage cookie consent, and you're using another consent management platform instead? How do you get Liferay to display that provider's cookie banner and consume the resulting consent details? &lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;That is where one of the new capabilities in &lt;strong&gt;Liferay DXP 2026.Q3&lt;/strong&gt; comes in.&lt;/p&gt;





&lt;h2&gt;New in 2026.Q3: External CMP Integration&lt;/h2&gt;









&lt;p&gt;Liferay DXP 2026.Q3 introduces the ability to integrate a third-party &lt;a
    href="https://learn.liferay.com/w/dxp/security-and-administration/users-and-permissions/managing-user-data/consent-management-platform-integration" rel="noopener noreferrer"&gt;Consent Management Platform&lt;/a&gt; directly into Liferay.&lt;/p&gt;





&lt;p&gt;You may encounter pieces of this functionality behind development or beta feature flags in earlier releases. Those earlier implementations were incomplete, so I would treat &lt;strong&gt;2026.Q3 as the practical starting point for using the CMP integration&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;This feature is especially interesting for organizations that have already standardized on an enterprise CMP.&lt;/p&gt;





&lt;p&gt;Instead of replacing that platform with Liferay's Consent Manager, Liferay can participate in the consent architecture that already exists.&lt;/p&gt;





&lt;p&gt;The configuration is available under:&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Global Menu → Control Panel → Instance Settings → Privacy → Third-party Consent Management Platform &lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;The configuration contains:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Provider Name&lt;/strong&gt;&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Script Tag&lt;/strong&gt;&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Consent Mapping Script&lt;/strong&gt;&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Enabled&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;The vendor's Script Tag is the same sort of installation code the CMP would normally ask you to place in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of your website. Liferay renders it for you, allowing the CMP to load and display its own consent interface.&lt;/p&gt;





&lt;h2&gt;There Are Really Two Systems Involved&lt;/h2&gt;





&lt;p&gt;Adding the CMP script gets its banner onto the page.&lt;/p&gt;





&lt;p&gt;But that does not automatically tell Liferay what the visitor selected.&lt;/p&gt;





&lt;p&gt;The architecture looks more like this:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126820712" src="https://liferay.dev/documents/portlet_file_entry/14/two-systems.png/863b9a2f-9443-958d-82f6-e97da735dd6b"&gt;&lt;/p&gt;





&lt;p&gt;The CMP still owns the consent experience.&lt;/p&gt;





&lt;p&gt;It can handle things such as:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;regional rules,&lt;/li&gt;
	&lt;li&gt;consent presentation,&lt;/li&gt;
	&lt;li&gt;vendor configuration,&lt;/li&gt;
	&lt;li&gt;cookie scanning,&lt;/li&gt;
	&lt;li&gt;audit records,&lt;/li&gt;
	&lt;li&gt;and whatever other capabilities the CMP provides.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Liferay only needs the result.&lt;/p&gt;





&lt;h2&gt;&lt;code&gt;CONSENT_STATE&lt;/code&gt;: The Contract Between the CMP and Liferay&lt;/h2&gt;





&lt;p&gt;Liferay normalizes the external CMP's decision into a cookie named:&lt;/p&gt;





&lt;pre&gt;
CONSENT_STATE
&lt;/pre&gt;





&lt;p&gt;The value is URL-encoded JSON containing Liferay's four consent categories.&lt;/p&gt;





&lt;p&gt;Decoded, it looks like this:&lt;/p&gt;





&lt;pre&gt;
{
  &amp;quot;CONSENT_TYPE_FUNCTIONAL&amp;quot;: true,
  &amp;quot;CONSENT_TYPE_NECESSARY&amp;quot;: true,
  &amp;quot;CONSENT_TYPE_PERFORMANCE&amp;quot;: false,
  &amp;quot;CONSENT_TYPE_PERSONALIZATION&amp;quot;: false
}
&lt;/pre&gt;





&lt;p&gt;The &lt;strong&gt;Consent Mapping Script&lt;/strong&gt; is responsible for translating whatever model the external CMP uses into this model.&lt;/p&gt;





&lt;p&gt;Conceptually, the mapping looks like this:&lt;/p&gt;





&lt;pre&gt;
function writeLiferayConsent(state) {
  const value = encodeURIComponent(JSON.stringify(state));

  let attributes =
    '; Path=/; SameSite=Lax; Max-Age=31536000';

  if (location.protocol === 'https:') {
    attributes += '; Secure';
  }

  document.cookie =
    `CONSENT_STATE=${value}${attributes}`;
}

function updateFromCMP(cmpConsent) {
  writeLiferayConsent({
    CONSENT_TYPE_NECESSARY: true,
    CONSENT_TYPE_FUNCTIONAL: cmpConsent.functional,
    CONSENT_TYPE_PERFORMANCE: cmpConsent.analytics,
    CONSENT_TYPE_PERSONALIZATION: cmpConsent.personalization,
  });
}
&lt;/pre&gt;





&lt;p&gt;That code is intentionally generic.&lt;/p&gt;





&lt;p&gt;The interesting part is not writing &lt;code&gt;CONSENT_STATE&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;It is this:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;cmpConsent.functional&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;cmpConsent.analytics&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;cmpConsent.personalization&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Every CMP represents those concepts differently.&lt;/p&gt;





&lt;h2&gt;Liferay Handles the Script Ordering&lt;/h2&gt;





&lt;p&gt;One subtle but useful part of the implementation is how Liferay renders these scripts.&lt;/p&gt;





&lt;p&gt;Liferay renders the CMP's &lt;strong&gt;Script Tag first&lt;/strong&gt;, followed by the &lt;strong&gt;Consent Mapping Script&lt;/strong&gt;, both in the page &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;That ordering lets the mapping script subscribe to the mechanisms provided by the CMP.&lt;/p&gt;





&lt;p&gt;Depending on the vendor, that might mean:&lt;/p&gt;





&lt;pre&gt;
window.addEventListener(...)
&lt;/pre&gt;





&lt;p&gt;or:&lt;/p&gt;





&lt;pre&gt;
CMP.on(...)
&lt;/pre&gt;





&lt;p&gt;or:&lt;/p&gt;





&lt;pre&gt;
CMP.getConsentDetails().then(...)
&lt;/pre&gt;





&lt;p&gt;or registering a callback into a queue that the CMP processes when it finishes initializing.&lt;/p&gt;





&lt;p&gt;This is an important detail because CMPs typically load asynchronously. A good integration has to handle both the initial page load and subsequent changes to consent.&lt;/p&gt;





&lt;h2&gt;Why Map Consent Back to Liferay?&lt;/h2&gt;





&lt;p&gt;Some CMPs can automatically prevent analytics and other scripts from running until the visitor consents.&lt;/p&gt;





&lt;p&gt;If that covers everything your site requires, the CMP may already be enforcing a large part of the client-side behavior.&lt;/p&gt;





&lt;p&gt;But Liferay itself also makes decisions based on consent.&lt;/p&gt;





&lt;p&gt;A good example is &lt;strong&gt;Remember Me&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;&lt;code&gt;REMEMBER_ME&lt;/code&gt; is categorized as a Functional cookie.&lt;/p&gt;





&lt;p&gt;If the external CMP says that Functional cookies are not allowed and the mapping script writes:&lt;/p&gt;





&lt;pre&gt;
{
  &amp;quot;CONSENT_TYPE_FUNCTIONAL&amp;quot;: false
}
&lt;/pre&gt;





&lt;p&gt;Liferay's backend will not create the &lt;code&gt;REMEMBER_ME&lt;/code&gt; cookie during sign-in, even if the visitor selected the Remember Me option.&lt;/p&gt;





&lt;p&gt;That is why the mapping matters.&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126820788" src="https://liferay.dev/documents/portlet_file_entry/14/liferay-knows.png/b9f48c0b-d63e-d984-e18b-a2f74483ccc8"&gt;&lt;/p&gt;





&lt;p&gt;Now the same consent decision can influence external scripts, custom Liferay code, and Liferay's own backend behavior.&lt;/p&gt;





&lt;h3&gt;One Default Behavior Worth Knowing&lt;/h3&gt;





&lt;p&gt;There is one implementation detail worth paying attention to during testing.&lt;/p&gt;





&lt;p&gt;If &lt;code&gt;CONSENT_STATE&lt;/code&gt; is:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;missing,&lt;/li&gt;
	&lt;li&gt;malformed, or&lt;/li&gt;
	&lt;li&gt;missing one of its keys,&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Liferay treats the corresponding consent type as granted. Necessary consent is always honored.&lt;/p&gt;





&lt;p&gt;That makes the startup behavior of the external CMP important.&lt;/p&gt;





&lt;p&gt;If the CMP uses automatic script blocking, it may already prevent anything sensitive from executing while consent is unknown.&lt;/p&gt;





&lt;p&gt;If you are relying on &lt;code&gt;CONSENT_STATE&lt;/code&gt; itself as part of the enforcement model, however, make sure your mapping establishes the intended state at initialization rather than waiting only for the user to change something.&lt;/p&gt;





&lt;h2&gt;Liferay Provides Examples for Popular CMPs&lt;/h2&gt;





&lt;p&gt;Fortunately, you do not have to approach every CMP integration from a blank JavaScript file.&lt;/p&gt;





&lt;p&gt;Liferay provides documented &lt;a
    href="https://learn.liferay.com/w/dxp/security-and-administration/users-and-permissions/managing-user-data/consent-mapping-script-examples" rel="noopener noreferrer"&gt;Consent Mapping Script&lt;/a&gt; examples for several widely used platforms:&lt;/p&gt;





&lt;table border="1" cellpadding="3" cellspacing="3"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;CMP&lt;/th&gt;
			&lt;th&gt;What the Example Shows&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;Cookiebot&lt;/td&gt;
			&lt;td&gt;Maps Necessary, Preferences, and Statistics into Liferay's consent model&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;CookieScript&lt;/td&gt;
			&lt;td&gt;Maps Strict, Functionality, Performance, and Targeting categories&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;Didomi&lt;/td&gt;
			&lt;td&gt;Demonstrates mapping project-specific purposes into Liferay categories&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;OneTrust&lt;/td&gt;
			&lt;td&gt;Maps OneTrust category IDs into Liferay consent types&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;Osano&lt;/td&gt;
			&lt;td&gt;Maps Essential, Analytics, and Personalization&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;Termly&lt;/td&gt;
			&lt;td&gt;Handles Termly's combined category model&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;Usercentrics&lt;/td&gt;
			&lt;td&gt;Demonstrates integration with the current Usercentrics v3 API&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt;I think these examples are one of the most useful parts of the feature because they demonstrate both sides of the integration:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126820799" src="https://liferay.dev/documents/portlet_file_entry/14/liferay-knows+%281%29.png/fb509de6-3acb-560c-2608-104cea8f09f0"&gt;&lt;/p&gt;





&lt;p&gt;You will still need to verify the mapping against your own CMP configuration.&lt;/p&gt;





&lt;p&gt;For example, OneTrust commonly uses category IDs such as &lt;code&gt;C0001&lt;/code&gt;, &lt;code&gt;C0002&lt;/code&gt;, &lt;code&gt;C0003&lt;/code&gt;, and &lt;code&gt;C0004&lt;/code&gt;, but those IDs are configurable per tenant. Confirm the actual category configuration used by your environment.&lt;/p&gt;





&lt;p&gt;Didomi takes a different approach. Its consent system is purpose-based and those purpose IDs are specific to your Didomi project, so the mapping must use the IDs configured for that environment.&lt;/p&gt;





&lt;p&gt;Usercentrics v3 provides direct equivalents for Essential and Functional by default, while Performance and Personalization require you to decide how your particular configuration should map them.&lt;/p&gt;





&lt;p&gt;These differences are exactly why having a mapping layer is valuable.&lt;/p&gt;





&lt;p&gt;Liferay does not have to understand every category model that every CMP vendor invents.&lt;/p&gt;





&lt;p&gt;It only has to understand:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Necessary&lt;/li&gt;
	&lt;li&gt;Functional&lt;/li&gt;
	&lt;li&gt;Performance&lt;/li&gt;
	&lt;li&gt;Personalization&lt;/li&gt;
&lt;/ul&gt;





&lt;h2&gt;The Mapping Script Is an Adapter&lt;/h2&gt;





&lt;p&gt;Architecturally, I think the best way to look at the Consent Mapping Script is as an adapter.&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126820810" src="https://liferay.dev/documents/portlet_file_entry/14/script-adapter.png/db2378db-9bdc-7f5c-8329-6e5300b47689"&gt;&lt;/p&gt;





&lt;p&gt;That separation has another advantage.&lt;/p&gt;





&lt;p&gt;Suppose the organization switches from one CMP to another.&lt;/p&gt;





&lt;p&gt;Your fragments can still say:&lt;/p&gt;





&lt;pre&gt;
&amp;lt;div
  data-third-party-cookie=&amp;quot;CONSENT_TYPE_PERFORMANCE&amp;quot;
&amp;gt;
  ...
&amp;lt;/div&amp;gt;
&lt;/pre&gt;





&lt;p&gt;Your Java code can still say:&lt;/p&gt;





&lt;pre&gt;
CookiesConstants.CONSENT_TYPE_FUNCTIONAL
&lt;/pre&gt;





&lt;p&gt;Your JavaScript can still say:&lt;/p&gt;





&lt;pre&gt;
Liferay.Util.Cookie.TYPES.PERFORMANCE
&lt;/pre&gt;





&lt;p&gt;Those applications do not need to know whether the consent came from Cookiebot, OneTrust, Usercentrics, or something else.&lt;/p&gt;





&lt;p&gt;Only the mapping between the external CMP and Liferay changes.&lt;/p&gt;





&lt;p&gt;That is a much cleaner dependency boundary than spreading vendor-specific consent logic throughout the application.&lt;/p&gt;





&lt;h2&gt;Don't Enable Two (or more) Consent Managers&lt;/h2&gt;





&lt;p&gt;There is one configuration mistake that is particularly easy to make while experimenting with the new feature.&lt;/p&gt;





&lt;p&gt;Do not leave both Liferay's built-in Consent Manager and an external CMP enabled.&lt;/p&gt;





&lt;p&gt;Liferay does not prevent you from doing this, but both consent banners can then be displayed.&lt;/p&gt;





&lt;p&gt;Pick one system to own the user-facing consent experience.&lt;/p&gt;





&lt;p&gt;If you are integrating an external CMP, that platform should normally own the banner and consent interaction.&lt;/p&gt;





&lt;p&gt;Liferay becomes a consumer and enforcer of the resulting consent state.&lt;/p&gt;





&lt;h2&gt;Testing the Integration&lt;/h2&gt;





&lt;p&gt;Cookie consent testing is one of those cases where a normal browser window can create misleading results.&lt;/p&gt;





&lt;p&gt;Consent is intentionally persistent. Your browser may already have the CMP's cookies, Liferay's cookies, local storage entries, or other state from an earlier test.&lt;/p&gt;





&lt;p&gt;You can manually clear all of that, but there is an easier approach.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Use a private or incognito browser window for consent testing.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;Closing the private session and opening another one gives you a predictable fresh visitor without having to remember which cookies or storage entries need to be removed.&lt;/p&gt;





&lt;p&gt;I would test the integration in four stages.&lt;/p&gt;





&lt;h3&gt;1. Test the Initial Visit&lt;/h3&gt;





&lt;p&gt;Open the site in a new private or incognito session.&lt;/p&gt;





&lt;p&gt;Verify that the external CMP's banner appears and that Liferay's built-in banner does not.&lt;/p&gt;





&lt;p&gt;If both appear, check which consent managers are enabled.&lt;/p&gt;





&lt;h3&gt;2. Test Different Consent Decisions&lt;/h3&gt;





&lt;p&gt;Do not test only &lt;strong&gt;Accept All&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;Try:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;rejecting all optional cookies,&lt;/li&gt;
	&lt;li&gt;enabling only Functional,&lt;/li&gt;
	&lt;li&gt;enabling Performance but not Personalization,&lt;/li&gt;
	&lt;li&gt;changing an earlier decision,&lt;/li&gt;
	&lt;li&gt;and accepting everything.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;If your CMP's categories do not line up exactly with Liferay's, pay particular attention to the combinations affected by your mapping decisions.&lt;/p&gt;





&lt;h3&gt;3. Inspect &lt;code&gt;CONSENT_STATE&lt;/code&gt;&lt;/h3&gt;





&lt;p&gt;After each choice, open the browser's developer tools and inspect:&lt;/p&gt;





&lt;pre&gt;
CONSENT_STATE&lt;/pre&gt;





&lt;p&gt;URL-decode the value and confirm that it matches what you expect.&lt;/p&gt;





&lt;p&gt;For example:&lt;/p&gt;





&lt;pre&gt;
{
  &amp;quot;CONSENT_TYPE_FUNCTIONAL&amp;quot;: true,
  &amp;quot;CONSENT_TYPE_NECESSARY&amp;quot;: true,
  &amp;quot;CONSENT_TYPE_PERFORMANCE&amp;quot;: false,
  &amp;quot;CONSENT_TYPE_PERSONALIZATION&amp;quot;: false
}
&lt;/pre&gt;





&lt;h3&gt;4. Test the Behavior, Not Just the Cookie&lt;/h3&gt;





&lt;p&gt;A correct JSON value is useful, but it is not the real test.&lt;/p&gt;





&lt;p&gt;If Performance consent is false, verify that the analytics script actually remains blocked.&lt;/p&gt;





&lt;p&gt;If Functional consent is false, test Remember Me.&lt;/p&gt;





&lt;p&gt;If the user changes consent after the page has loaded, verify that &lt;code&gt;CONSENT_STATE&lt;/code&gt; changes too.&lt;/p&gt;





&lt;p&gt;Then close the private browser session, start a new one, and repeat the test.&lt;/p&gt;





&lt;p&gt;The full path you want to verify is:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126820824" src="https://liferay.dev/documents/portlet_file_entry/14/full-path.png/f020cde8-18ad-2dda-bc12-7bf4dabbe997"&gt;&lt;/p&gt;





&lt;h2&gt;Cookie Consent Is Now an Integration Point&lt;/h2&gt;





&lt;p&gt;Liferay's cookie support has several layers, and they solve different problems.&lt;/p&gt;





&lt;p&gt;If you are creating your own cookie, use Liferay's consent-aware cookie APIs.&lt;/p&gt;





&lt;p&gt;If your page loads third-party content that may create cookies, classify that content using &lt;code&gt;data-third-party-cookie&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;If you introduce a new cookie, document it in the Cookie Policy utility page.&lt;/p&gt;





&lt;p&gt;If Liferay owns the consent experience, use the built-in Consent Manager.&lt;/p&gt;





&lt;p&gt;And starting with &lt;strong&gt;Liferay DXP 2026.Q3&lt;/strong&gt;, if your organization already has an external CMP, you can let that platform continue owning the consent experience while Liferay consumes the decision.&lt;/p&gt;





&lt;p&gt;The resulting architecture is straightforward:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126820836" src="https://liferay.dev/documents/portlet_file_entry/14/integration-point.png/5277c6db-8c51-4581-1e11-3b4e1cbef2d7"&gt;&lt;/p&gt;





&lt;p&gt;For me, that is the interesting part of this new 2026.Q3 feature.&lt;/p&gt;





&lt;p&gt;You do not have to choose between using your organization's existing CMP and taking advantage of Liferay's consent-aware cookie handling.&lt;/p&gt;





&lt;p&gt;The CMP can remain the authority for collecting consent, while Liferay uses that decision everywhere it needs to enforce it.&lt;/p&gt;





&lt;p&gt;And because the integration boundary is Liferay's four-category consent model rather than a particular vendor, your Liferay applications do not need to become OneTrust applications, Cookiebot applications, or Usercentrics applications.&lt;/p&gt;





&lt;p&gt;They remain Liferay applications.&lt;/p&gt;





&lt;p&gt;The mapping layer handles the difference.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2026-09-23T17:03:00Z</dc:date>
  </entry>
  <entry>
    <title>Liferay Workspace and Claude Code</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126795832" />
    <author>
      <name>Victor Ware</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126795832</id>
    <updated>2026-09-25T19:23:20Z</updated>
    <published>2026-09-15T17:13:00Z</published>
    <summary type="html">&lt;h2&gt;Build With Liferay&lt;/h2&gt;





&lt;p data-local-id="4285597a3334" data-renderer-start-pos="1041"&gt;Liferay offers you an extensible platform for launching digital experiences: public websites, customer and partner portals, unified commerce storefronts, employee workplaces, and more. Almost every layer is composable and built to be expanded.&lt;/p&gt;





&lt;p data-local-id="0b43680bd82d" data-renderer-start-pos="1286"&gt;Building on Liferay keeps getting easier. The characteristics that make Liferay flexible for developers also make it ready for AI agents, such as the open source architecture, clear extension points, declarative artifacts, and APIs for everything (including your custom functionality). You no longer need to start with studying documentation and setting up boilerplate code, instead, just use an AI agent to do that for you.&lt;/p&gt;





&lt;p data-local-id="02ca0f781526" data-renderer-start-pos="1677"&gt;This tutorial shows you how to get started building on Liferay by prompting. By the end you will have a working event registration experience, with its own data model, pages, registration workflow, and brand, running on a Liferay DXP instance on your machine.&lt;/p&gt;





&lt;h2&gt;Liferay Workspace&lt;/h2&gt;





&lt;p data-local-id="26fefc138bd9" data-renderer-start-pos="1961"&gt;Even though AI agents can write code, custom experiences still deserve real engineering and lifecycle management: version control, review, repeatable deployment, and testing. A local environment allows you to manage all of these directly. The full platform runs on your dev machine, so you can experiment freely and throw away what does not work. All your iterations live in a git repository, giving you long term management and traceability. This tutorial uses this discipline: each layer is committed, so the agent's work is history you can review, revert, and share.&lt;/p&gt;





&lt;p data-local-id="d5d8642c5523" data-renderer-start-pos="2532"&gt;Liferay Workspace is a set of scripts, standard directory structures, and AI skills providing everything you need to do real engineering on top of Liferay DXP. And, most of all, it is a local playground for you to try anything alongside your agents.&lt;/p&gt;





&lt;h2&gt;AI Hub vs Workspace&lt;/h2&gt;





&lt;p data-local-id="00bcf414bfc9"
    data-renderer-start-pos="2801"&gt;A quick note: Liferay also offers additional AI-driven solutions for building experiences. &lt;a
    data-is-router-link="false" data-renderer-mark="true"
    data-testid="link-with-safety"
    href="https://www.liferay.com/capabilities/ai-hub" title="https://www.liferay.com/capabilities/ai-hub"&gt;AI Hub&lt;/a&gt; is a standalone product that empowers even your business users to create and automate on top of Liferay or any platform you choose.&lt;/p&gt;





&lt;p data-local-id="97f52e67dc59" data-renderer-start-pos="3032"&gt;When you use each of these solutions:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;
	&lt;p data-local-id="a2b6215eda14"
      data-renderer-start-pos="3073"&gt;Choose AI Hub when &lt;strong&gt;you need AI intelligence&lt;/strong&gt; inside your solution. It allows you to use Liferay-created and managed agents. You can even create your own agents operated by business and developers alike. These agents work on live content, workflows, and data at runtime.&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="79aacaf04ceb" data-renderer-start-pos="3345"&gt;Choose a local Workspace environment when you need to build and manage custom experiences that &lt;strong&gt;extend core Liferay functionality&lt;/strong&gt;: custom data models, frontends, and logic, developed with your own editor and your own agent, all under version control.&lt;/p&gt;
	&lt;/li&gt;
&lt;/ul&gt;





&lt;p data-local-id="3ff9c48c07fc" data-renderer-start-pos="3598"&gt;Many users will find value in leveraging both solutions for different use cases. But this tutorial focuses on Liferay Workspace and extending functionality.&lt;/p&gt;





&lt;h2&gt;The Magic: Liferay Dev Skills Pack&lt;/h2&gt;





&lt;p data-local-id="f0ecf8660b15" data-renderer-start-pos="3792"&gt;Our AI developer skills pack is included on Liferay Workspace initialization (&lt;code&gt;blade init&lt;/code&gt;). Open a Workspace directory in Claude Code (or other AI agent) and it already knows how Liferay works.&lt;/p&gt;





&lt;p data-local-id="e6e21a740df7" data-renderer-start-pos="3986"&gt;2 kinds of context ship in the pack:&lt;/p&gt;





&lt;p data-local-id="94f07b97c803" data-renderer-start-pos="4024"&gt;&lt;strong&gt;Always-applied rules.&lt;/strong&gt; Loaded into every session. These train the agent how to use the Workspace and Liferay DXP, such as version detection, project paths, tooling conventions, documentation sources.&lt;/p&gt;





&lt;p data-local-id="608c1f1425a7" data-renderer-start-pos="4225"&gt;&lt;strong&gt;On-demand skills.&lt;/strong&gt; You do not invoke skills by name. You describe the outcome (&amp;quot;create an object&amp;quot;, &amp;quot;build a page&amp;quot;, &amp;quot;change the site colors&amp;quot;) and Claude matches the request to a skill, which supplies Liferay-correct patterns and the pitfalls to avoid. Skills can be invoked directly by name if needed (&lt;code&gt;/skills&lt;/code&gt;)&lt;/p&gt;





&lt;h2&gt;What You Will Build in this Workspace Tutorial&lt;/h2&gt;





&lt;p data-local-id="86543f7c221a" data-renderer-start-pos="4583"&gt;An event registration experience, in four Liferay-native layers:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;
	&lt;p data-local-id="ddf04000d1e9"
      data-renderer-start-pos="4651"&gt;A data model with two related Liferay Objects&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="29a3a6547771"
      data-renderer-start-pos="4700"&gt;Three pages composed from reusable fragments&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="0e69160c09e4"
      data-renderer-start-pos="4748"&gt;Custom visuals: a style book, plus a shared header and footer&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="153c2c09c44a" data-renderer-start-pos="4813"&gt;A functional registration approval workflow, verified end to end by the agent&lt;/p&gt;
	&lt;/li&gt;
&lt;/ol&gt;





&lt;p data-local-id="89a10036193e" data-renderer-start-pos="4894"&gt;Each layer is one prompt to Claude Code. You need no prior Liferay development or Claude Code experience. You need a machine that can run a local Liferay bundle and a terminal interface (or agent app) you are comfortable in.&lt;/p&gt;





&lt;p data-local-id="c8378c0b4a22" data-renderer-start-pos="5120"&gt;Claude is also not the only option. Any local AI coding agent platform will be able to use our skills and follow this tutorial.&lt;br&gt;
&lt;br&gt;
Let’s get going.&lt;/p&gt;





&lt;h2&gt;Setup&lt;/h2&gt;





&lt;p data-local-id="9b55b24e6733" data-renderer-start-pos="5274"&gt;You need the following:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;
	&lt;p data-local-id="d43bfb3cf66f"
      data-renderer-start-pos="5302"&gt;A machine with at least 8GB of RAM&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="c820abf0ac91" data-renderer-start-pos="5340"&gt;&lt;a
        data-is-router-link="false" data-renderer-mark="true"
        data-testid="link-with-safety"
      href="https://www.azul.com/downloads/?version=java-21-lts&amp;amp;package=jdk#zulu"&gt;Java 21 JDK&lt;/a&gt;&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="b20fb6b01160" data-renderer-start-pos="5355"&gt;&lt;a
        data-is-router-link="false" data-renderer-mark="true"
        data-testid="link-with-safety"
        href="https://learn.liferay.com/w/dxp/development/tooling/blade-cli"
      title="https://learn.liferay.com/w/dxp/development/tooling/blade-cli"&gt;Blade CLI&lt;/a&gt; (use latest version &lt;code&gt;blade update&lt;/code&gt;)&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="ff481e45455e" data-renderer-start-pos="5368"&gt;&lt;a
        data-is-router-link="false" data-renderer-mark="true"
        data-testid="link-with-safety" href="https://git-scm.com/"
      title="https://git-scm.com/"&gt;Git&lt;/a&gt; version control&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="5d688c5b1d97"
        data-renderer-start-pos="5391"&gt;DXP license (Download a &lt;a
        data-is-router-link="false" data-renderer-mark="true"
        data-testid="link-with-safety"
        href="https://marketplace.liferay.com/p/liferay-dxp-free-tier"
      title="https://marketplace.liferay.com/p/liferay-dxp-free-tier"&gt;Free license&lt;/a&gt;)&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="a13a31f54ed9" data-renderer-start-pos="5432"&gt;&lt;a
        data-is-router-link="false" data-renderer-mark="true"
        data-testid="link-with-safety"
        href="https://claude.com/product/claude-code" title="https://claude.com/product/claude-code"&gt;Claude Code&lt;/a&gt; (or your AI agent of choice)&lt;/p&gt;
	&lt;/li&gt;
&lt;/ol&gt;





&lt;div class="overflow-auto portlet-msg-alert"
  data-local-id="a13a31f54ed9" data-renderer-start-pos="5432"&gt;These are the manual steps, but Claude Code can set this up for you if you just point it to this blog URL and ask it to run the setup. The DXP license download is the only step that must be done manually.&lt;/div&gt;





&lt;p data-local-id="37b28f78b1f0" data-renderer-start-pos="6415"&gt;&lt;strong&gt;Create the workspace.&lt;/strong&gt; With Blade installed, initialize a workspace on a version that ships the skills pack:&lt;/p&gt;





&lt;p&gt;&lt;code&gt;blade init -v dxp-2026.q1.9-lts dev-events &amp;amp;&amp;amp; cd dev-events&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="4f0aedd6c3f2" data-renderer-start-pos="5643"&gt;&lt;strong&gt;Make it a repository.&lt;/strong&gt; Everything you build in this tutorial lives as files, so put them under version control before you change anything:&lt;/p&gt;





&lt;p&gt;&lt;code&gt;git init &amp;amp;&amp;amp; git add . &amp;amp;&amp;amp; git commit -m &amp;quot;Initialize workspace&amp;quot;&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="62d3b6411e5e" data-renderer-start-pos="5845"&gt;The workspace ships a &lt;code&gt;.gitignore&lt;/code&gt; that keeps the server bundle and build output out of the repository; what remains is exactly what you author. This is the last git command you type in this tutorial. From here, Claude commits each verified layer for you.&lt;/p&gt;





&lt;p data-local-id="87a559a5cd8a" data-renderer-start-pos="6100"&gt;&lt;strong&gt;Download the bundle.&lt;/strong&gt; Run this command to Tomcat bundle into &lt;code&gt;bundles/&lt;/code&gt;&lt;/p&gt;





&lt;p&gt;&lt;code&gt;blade server init&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="e4ad077ecca9" data-renderer-start-pos="6189"&gt;&lt;strong&gt;Copy your activation xml to &lt;/strong&gt;&lt;code&gt;deploy&lt;/code&gt;&lt;strong&gt; directory &lt;/strong&gt;(based on your xml name and environment)&lt;/p&gt;





&lt;p&gt;&lt;code&gt;cp C:\Users\MyUser\Downloads\activation-2026-q1.xml .\bundles\deploy\&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="ec047791c6dd" data-renderer-start-pos="6348"&gt;No need to start the server yet, Claude will handle that for you.&lt;/p&gt;





&lt;p data-local-id="cf73e83a00e7" data-renderer-start-pos="6533"&gt;&lt;strong&gt;Launch.&lt;/strong&gt; Open the workspace folder in your terminal and open in claude code:&lt;/p&gt;





&lt;p&gt;&lt;code&gt;claude&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="b9a3ba21b576" data-renderer-start-pos="6619"&gt;Claude Code starts at the workspace root and picks up the pack automatically. Confirm it with a question:&lt;/p&gt;





&lt;p&gt;&lt;code&gt;What Liferay skills are available in this workspace?&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="9c84d050d1a2" data-renderer-start-pos="6780"&gt;Claude answers from the skill index. If it does, you are ready to build.&lt;/p&gt;





&lt;p data-local-id="dcd23c0f6542" data-renderer-start-pos="6854"&gt;&lt;strong&gt;Recommendation: Let Claude drive Git.&lt;/strong&gt; An agent that changes your project should leave a trail. In this tutorial every prompt ends by asking Claude to commit the verified result, so each layer becomes a checkpoint you can diff, review, or roll back. You do not need to write a commit yourself.&lt;/p&gt;





&lt;h2&gt;The Build: An Event Registration Experience&lt;/h2&gt;





&lt;p data-local-id="d5239c3217ed" data-renderer-start-pos="7193"&gt;&lt;strong&gt;The scenario:&lt;/strong&gt; your organization runs a conference, people sign up for the sessions, every signup starts out pending review (the event manager approves sign ups), and the experience carries your brand. Four layers, four prompts, each verified against the running server and committed to the repository.&lt;/p&gt;





&lt;p data-local-id="9b3727bfd03b" data-renderer-start-pos="7496"&gt;Prompts can be copied as written. Outcomes are described for you to verify since agent output varies run to run, and different models may produce different results.&lt;/p&gt;





&lt;p data-local-id="c28453cdc81d" data-renderer-start-pos="7662"&gt;Notice what the prompts do not say. They do not name a specific Liferay concept, skill, or file; they describe the outcome in plain business language and let the skills do their magic. They also sometimes state what not to do, so the agent stays focused.&lt;/p&gt;





&lt;h3&gt;Layer 1: The Data Model&lt;/h3&gt;





&lt;p data-local-id="4fc3671d3f3a" data-renderer-start-pos="7943"&gt;Here is our first prompt:&lt;/p&gt;





&lt;p&gt;&lt;code&gt;I'm planning our annual tech conference and I want to put together a site for it, showing what events are happening and letting people sign up for individual events.&lt;br&gt;
&lt;br&gt;
Start with the information we need to store. For each event: a name, a description, when it starts and ends, where it is, and how many people we can fit. For everyone who signs up: their name, email, company, any dietary requirement picked from a set list. Create multiple sample events, with every signup belonging to one event.&lt;br&gt;
&lt;br&gt;
I also want a way to see the current list of signups in the control panel.&lt;br&gt;
&lt;br&gt;
Set that up, commit it, and show me it's working. I want to see an event and a signup saved.&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="48a35b6161ed" data-renderer-start-pos="8638"&gt;&lt;strong&gt;Expected outcome:&lt;/strong&gt; Claude creates and publishes two related Liferay Objects, one for events and one for signups, with a one-to-many relationship and picklists for the dietary requirement and the signup status. It then proves the model works by saving one event and one signup, captures the definitions into the workspace as files, and commits them.&lt;/p&gt;





&lt;p data-local-id="169134bd84ff" data-renderer-start-pos="8987"&gt;&lt;strong&gt;Test it: &lt;/strong&gt;If you login to your running Liferay DXP at &lt;code&gt;http://localhost:8080&lt;/code&gt; then you should be able to see the Signups and Events as dedicated Objects in the Control Panel.&lt;/p&gt;





&lt;p data-local-id="55a443e6991c" data-renderer-start-pos="9160"&gt;Default Login:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;
	&lt;p data-local-id="6c3eb51689b7"
      data-renderer-start-pos="9179"&gt;User: test@liferay.com&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p
      data-local-id="7fda031d40aa" data-renderer-start-pos="9205"&gt;PW: test&lt;/p&gt;
	&lt;/li&gt;
&lt;/ol&gt;





&lt;p data-local-id="f266b4d485ef" data-renderer-start-pos="9217"&gt;If any of this is not working after the single prompt, explain to the agent what needs to be fixed, and verify before continuing.&lt;/p&gt;





&lt;h3&gt;Layer 2: The Pages&lt;/h3&gt;





&lt;p data-local-id="9a96fe0a7769" data-renderer-start-pos="9368"&gt;With the data in place, build what visitors see:&lt;/p&gt;





&lt;p&gt;&lt;code&gt;Now create the pages people will actually see.&lt;br&gt;
&lt;br&gt;
A home page that opens with something eye-catching about the conference and then shows the events coming up. A page listing every event with its date, where it is, and how many places are left. And a signup page with a form asking for everything we need, where the person picks which event they want.&lt;br&gt;
&lt;br&gt;
Build the pieces so my team can rearrange them or reuse them on other pages later. Then commit and show me the pages working.&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="e09634f52fb6" data-renderer-start-pos="9896"&gt;&lt;strong&gt;Expected outcome:&lt;/strong&gt; Claude creates three pages, a home page with a banner and an upcoming events list, an events listing showing date, location, and remaining capacity, and a signup page with form data stored in the signup object. The page elements are re-usable fragments rather than hardcoded markup. The pages should be navigated with Liferay’s out of the box page navigation header.&lt;/p&gt;





&lt;h3&gt;Layer 3: The Brand&lt;/h3&gt;





&lt;p data-local-id="4cf6d8b7fd31" data-renderer-start-pos="10302"&gt;Now replace the out-of-the-box look:&lt;/p&gt;





&lt;p&gt;&lt;code&gt;The site still looks like the software it was built with. Give it a look of its own: deep navy with amber accents, and a bold, heavy typeface for the headings.&lt;br&gt;
&lt;br&gt;
Every page should carry the same branded header with the conference name and the menu, and a footer with our contact details.&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="75861570debf" data-renderer-start-pos="10628"&gt;&lt;strong&gt;Expected outcome:&lt;/strong&gt; Claude applies the navy and amber palette and the heavy heading typeface through a style book and site-level CSS, so the branding lands across every page at once instead of page by page. The header carrying the conference name and menu, and the footer carrying contact details, are applied site wide so new pages inherit them automatically.&lt;/p&gt;





&lt;p data-local-id="28131fdc8320" data-renderer-start-pos="10988"&gt;&lt;em&gt;Bonus:&lt;/em&gt; Ask to spawn a sub-agent to review the branding on your website of choice and return, then your main agent can use that information to apply that branding to your site. Using a sub-agent helps to manage the context window.&lt;/p&gt;





&lt;h3&gt;Layer 4: The Registration Flow&lt;/h3&gt;





&lt;p data-local-id="5b22eb5df8d9" data-renderer-start-pos="11251"&gt;The last prompt makes the form real and uses Liferay’s Workflow Engine.&lt;/p&gt;





&lt;p&gt;&lt;code&gt;Now make the signup form actually work.&lt;br&gt;
&lt;br&gt;
When someone fills it in, their details should be saved against the event they picked and start out as pending, and they should land on a dedicated thank-you page. Don't build anything for sending email, we'll connect our mailing tool later. However, this sign up should end up in the platform's workflow system for review and approval of sign up by the Admin user.&lt;br&gt;
&lt;br&gt;
Then run through it yourself from start to finish and tell me what worked and what didn't, including the workflow approval.&lt;/code&gt;&lt;/p&gt;





&lt;p data-local-id="41355f3bb043" data-renderer-start-pos="11858"&gt;&lt;strong&gt;Expected outcome:&lt;/strong&gt; Claude wires the form to save each submission against the chosen event with a pending status and redirects the visitor to a “Thank You” page. The admin user can then approve submissions in the Liferay DXP out-of-the-box “My Workflow Tasks” app. The agent verifies the whole flow and reports what worked and what did not.&lt;br&gt;
&lt;br&gt;
Ideally you should be able to submit as a guest user (no login) and then use the admin user to approve.&lt;br&gt;
&lt;br&gt;
Again, if something is not working at this point or you want to change the experience, continue to prompt the agent to refine your site.&lt;/p&gt;





&lt;h2&gt;What Is Next&lt;/h2&gt;





&lt;p data-local-id="abda4885f735" data-renderer-start-pos="12455"&gt;Now that you have a functional event registration site, feel free to continue prompting. Move elements around, create more pages and functionality. There is so much you can build, iterate, and ship to your customers quickly with AI agents and Liferay.&lt;/p&gt;





&lt;h2&gt;Updating Skills&lt;/h2&gt;





&lt;p data-local-id="a9b5c19037a8" data-renderer-start-pos="12725"&gt;The skills pack is continuing to evolve and expand. If you have an existing workspace, run &lt;code&gt;./gradlew updateWorkspace&lt;/code&gt; to get the latest version of the skills files (Requires Blade 8.0.2 or later).&lt;/p&gt;





&lt;p data-local-id="8a842ef35710"
    data-renderer-start-pos="12922"&gt;Please share your feedback over at &lt;a
    data-is-router-link="false" data-renderer-mark="true"
    data-testid="link-with-safety" href="https://discuss.liferay.com/" title="https://discuss.liferay.com/"&gt;Liferay Discuss&lt;/a&gt;. Your feedback helps decide which skills we build next.&lt;/p&gt;</summary>
    <dc:creator>Victor Ware</dc:creator>
    <dc:date>2026-09-15T17:13:00Z</dc:date>
  </entry>
  <entry>
    <title>I Asked AI to Add MFA to Liferay... Here's What Happened</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126783517" />
    <author>
      <name>Eric D</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126783517</id>
    <updated>2026-09-21T01:00:18Z</updated>
    <published>2026-09-12T08:22:00Z</published>
    <summary type="html">&lt;p&gt;Why this article? I try to evaluate how easy vibe coding is with Liferay.&lt;br&gt;
I ask ChatGPT and/or Claude to generate a Liferay module from scratch with a single sentence.&lt;br&gt;
First, I use my mobile and the ChatGPT website with a free license. All AIs know Liferay; the important thing is to specify the version. In my case I put 2025.q1, but 2026.q1 is also possible, since it has been available for a few months now.&lt;br&gt;
ChatGPT easily gives me an OSGi module. I simply look at it (always on my mobile when I have time) and ask it to add unit tests, use a fragment, expose an endpoint...&lt;br&gt;
Afterwards, I evaluate and test the generated code in a real environment. I use Cursor to adapt the modules to my Liferay 7.4.132 CE (same as 2025.q1), and here I spend hours improving the code but I work no code, I ask to Cursor to do what I want.&lt;br&gt;
The main problem is authentication: after a user enters their email and password, a session is created and the OTP screen is shown. I need to secure this and create the user session only after OTP validation.&lt;br&gt;
Finally, I  create my github repository and ask to write this article based on this generated GitHub repository (always on my phone).&lt;/p&gt;





&lt;hr&gt;




&lt;h1&gt;1. The project in a nutshell&lt;/h1&gt;





&lt;p&gt;&lt;br&gt;
lfr-totp-auth is an open-source project that adds a second factor authentication based on TOTP to Liferay 7.4 CE (and versions 2025.Q1+ and 2026.Q1+). It uses OSGi services and does not rely on ServiceUtil (ServiceBuilder).&lt;br&gt;
The project is organized around three modules:&lt;/p&gt;





&lt;p&gt;&lt;br&gt;
&lt;img data-fileentryid="126793776" src="https://liferay.dev/documents/portlet_file_entry/14/22488.jpg/5a49cb4b-a363-888e-ab71-dcb2fcd48065"&gt;&lt;/p&gt;





&lt;h1&gt;&lt;br&gt;
2. The principle: don't create the session too early&lt;/h1&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The heart of the project is a simple idea:&lt;br&gt;
&amp;quot;Password valid ≠ User authenticated&amp;quot;.&lt;br&gt;
The password is validated, but the session is not created yet after verifying the second factor (TOTP).&lt;br&gt;
The authentication workflow (diagram):&lt;br&gt;
Email + password&lt;br&gt;
Password validated (no session yet)&lt;br&gt;
TOTP valid&lt;br&gt;
Authenticated&lt;br&gt;
User → Liferay → TOTP Authenticator → TOTP Verification → Session created&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126792574" src="https://liferay.dev/documents/portlet_file_entry/14/22461+%282%29.jpg/06090f27-60cc-9524-3fe1-66fb10eee336"&gt;&lt;br&gt;
ℹ️ The password is valid. The TOTP is a separate check.&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;h1&gt;3. General architecture&lt;/h1&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The project clearly separates the responsibilities: UI, API and business logic.&lt;/p&gt;





&lt;p&gt;&lt;br&gt;
Diagram:&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126783929" src="https://liferay.dev/documents/portlet_file_entry/14/22408.jpg/687c4411-3fdc-def5-7519-6ea0b9dea4ea"&gt;&lt;/p&gt;





&lt;p&gt;User → fragments totp-setup (fragment) and totp-verify (fragment) → REST API: TOTPRestApplication (JAX-RS) — /o/totp/api&lt;br&gt;
OSGi · TOTP Authenticator: TotpLoginMVCActionCommand, TotpTwoFactorLoginService, TOTPLoginFilter, TotpPendingLoginUtil, TOTPService, TotpRoleChecker&lt;br&gt;
Liferay: User Session, User / Expando, System Settings&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126792592" src="https://liferay.dev/documents/portlet_file_entry/14/22467+%287%29.jpg/dac323d8-935f-00e3-94e6-8cf68f4170ea"&gt;&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;h1&gt;4. TOTP setup&lt;/h1&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;If the user is not yet configured for TOTP, they are redirected to the setup page. The totp-setup fragment calls the API to generate the QR code and backup codes.&lt;/p&gt;





&lt;p&gt;&lt;br&gt;
TOTP setup sequence (User, totp-setup (fragment), REST API, TOTPService, Expando):&lt;br&gt;
GET /setup/init&lt;br&gt;
Generates secret and backup codes&lt;br&gt;
QR code + backup codes&lt;br&gt;
POST /setup/confirm&lt;br&gt;
Verifies code and stores secret&lt;br&gt;
Confirmation&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126792611" src="https://liferay.dev/documents/portlet_file_entry/14/22474+%281%29.jpg/69e58726-5db2-8e4f-f82a-7635ed9190d4"&gt;&lt;/p&gt;





&lt;h1&gt;5. The complete workflow&lt;/h1&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Here's the global flow, from the user's perspective, once the setup is configured.&lt;/p&gt;





&lt;p&gt;&lt;br&gt;
Login flow (diagram):&lt;br&gt;
Login (email + password) → Password validated (no session) → diamond &amp;quot;TOTP configured?&amp;quot;&lt;br&gt;
No → Setup → MFA validated → Session created&lt;br&gt;
Yes → TOTP Verification → MFA validated → Session created&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126792620" src="https://liferay.dev/documents/portlet_file_entry/14/22464+%281%29.jpg/68e76686-1d3d-213d-2d00-78c20e2b6cd4"&gt;&lt;/p&gt;





&lt;h1&gt;6. Data storage&lt;/h1&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The TOTP secret and backup codes are stored in custom fields (Expando) for the user.&lt;br&gt;
Diagram: User → Custom Fields / Expando: totpSecret (Base32), totpBackupCodes (BCrypt)&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126792956" src="https://liferay.dev/documents/portlet_file_entry/14/22482.jpg/fc482bdb-f306-e533-5dac-ddde8933cf26"&gt;&lt;/p&gt;





&lt;h1&gt;7. Backup codes&lt;/h1&gt;





&lt;p&gt;&lt;br&gt;
Five backup codes are generated and stored as BCrypt hashes. They are used once and must not be reusable.&lt;br&gt;
Diagram: Backup code (XXXX-XXXX-XXXX-XXXX) → BCrypt → Hash stored → Verification →&lt;br&gt;
Valid → Login&lt;br&gt;
Invalid → Rejected&lt;/p&gt;





&lt;h1&gt; &lt;/h1&gt;





&lt;h1&gt;8. REST endpoints&lt;/h1&gt;





&lt;p&gt;&lt;br&gt;
The JAX-RS application exposes a small set of endpoints :&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126792965" src="https://liferay.dev/documents/portlet_file_entry/14/22485.jpg/bf9c381f-bc0c-ddd8-6f7c-7f16b260c691"&gt;&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;h1&gt;9. What's next?&lt;/h1&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The project is a solid foundation and could be used in production, because it is a complementary step to the basic login.&lt;/p&gt;





&lt;p&gt;&lt;br&gt;
What we can still improve:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;rate limiting and brute-force protection,&lt;/li&gt;
	&lt;li&gt;MFA event auditing,&lt;/li&gt;
	&lt;li&gt;account recovery procedures,&lt;/li&gt;
	&lt;li&gt;adapt the code to Liferay 2026.q1 version&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt; &lt;/p&gt;





&lt;h1&gt;10. The final word&lt;/h1&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;The vibe coding isn't just about writing code. It's about asking the right questions.&lt;/p&gt;





&lt;p&gt;&lt;br&gt;
&amp;quot;The code is easy. The workflow is difficult.&amp;quot;&lt;br&gt;
— Eric Dariel&lt;/p&gt;









&lt;p&gt;&lt;br&gt;
The project is open source under the Apache 2.0 license.&lt;br&gt;
Here is the link : &lt;a href="http://www.github.com/ericdariel/lfr-totp-auth"&gt;github link&lt;/a&gt;&lt;/p&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;Here a all in one image generated by ChatpGPT :&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126807822" src="https://liferay.dev/documents/portlet_file_entry/14/22396.png/ef9ffd85-7511-a523-a072-38dce1a80c5b"&gt;&lt;/p&gt;</summary>
    <dc:creator>Eric D</dc:creator>
    <dc:date>2026-09-12T08:22:00Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP 2026.Q3 - Release Webinar - Replay</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126723763" />
    <author>
      <name>Ben Turner</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126723763</id>
    <updated>2026-09-16T03:51:30Z</updated>
    <published>2026-09-02T00:58:00Z</published>
    <summary type="html">&lt;p&gt;Hi everyone! I'm pleased to announce that the &lt;a
    href="https://www.liferay.com/web/lr/quarterly-release-webinar-q3-2026-recording"
    rel="noopener noreferrer" target="_blank"&gt;recording&lt;/a&gt; of the 2026.Q3 Release Webinar is now available for you to replay at your leisure!&lt;br&gt;
&lt;br&gt;
The recording includes details on key new features in the Q3 release like Design Libraries, CNE AWS Ready and Kubernetes Ready, as well as key new modules moving out of Beta status:&lt;br&gt;
•    Liferay Data Platform - GA&lt;br&gt;
•    Digital Sales Room - GA&lt;br&gt;
•    AI Hub - GA&lt;br&gt;
•    Content Marketing Platform - Release&lt;/p&gt;





&lt;h4&gt;For more details and a link to the recording and PDF you can visit:&lt;/h4&gt;





&lt;p&gt;&lt;a
    href="https://learn.liferay.com/d/liferay-dxp-2026-q2-release-webinar/"
    rel="noopener noreferrer" target="_blank"&gt;https://www.liferay.com/web/lr/quarterly-release-webinar-q3-2026-recording&lt;/a&gt;&lt;/p&gt;





&lt;p&gt;Any questions, you know where to find me!&lt;/p&gt;





&lt;p&gt;All the best,&lt;/p&gt;





&lt;p&gt;Ben&lt;/p&gt;</summary>
    <dc:creator>Ben Turner</dc:creator>
    <dc:date>2026-09-02T00:58:00Z</dc:date>
  </entry>
  <entry>
    <title>Enabling ModSecurity in Liferay PaaS</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126640680" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126640680</id>
    <updated>2026-08-18T19:21:59Z</updated>
    <published>2026-08-18T18:45:00Z</published>
    <summary type="html">&lt;p&gt;Liferay's documentation does a good job of explaining how to turn ModSecurity on, how to provide your own configuration, and how to send the audit log to the Liferay Cloud Console.&lt;/p&gt;





&lt;p&gt;But, as I recently discovered while working with a client, there is a pretty big gap between:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;ModSecurity is enabled and I can see logs.&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;and:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;I'm getting the ModSecurity information I actually need, reliably, without overwhelming the logging pipeline.&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;We spent quite a bit of time working through that gap.&lt;/p&gt;





&lt;p&gt;This post isn't intended to replace the official documentation. Think of it as the next chapter: some practical configuration guidance that became apparent only after working through a real-world implementation.&lt;/p&gt;





&lt;h2&gt;Start with the Liferay Documentation&lt;/h2&gt;





&lt;p&gt;If you haven't already enabled ModSecurity, start with &lt;a
    href="https://learn.liferay.com/w/dxp/cloud/tuning-security-settings/web-application-firewall" rel="noopener noreferrer"&gt;Liferay's official Web Application Firewall documentation&lt;/a&gt;.&lt;/p&gt;





&lt;p&gt;In &lt;code&gt;webserver/LCP.json&lt;/code&gt;, enable ModSecurity using:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;{
    &amp;quot;env&amp;quot;: {
        &amp;quot;LCP_WEBSERVER_MODSECURITY&amp;quot;: &amp;quot;DetectionOnly&amp;quot;
    }
}&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Liferay supports three values:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;Off&lt;/code&gt; — ModSecurity does not process rules.&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;DetectionOnly&lt;/code&gt; — rules are evaluated, but disruptive actions aren't executed.&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;On&lt;/code&gt; — rules are evaluated and enforcement actions can be executed.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Liferay recommends starting with &lt;code&gt;DetectionOnly&lt;/code&gt;, testing and tuning the rules, and moving to &lt;code&gt;On&lt;/code&gt; only after you're comfortable that legitimate traffic won't be disrupted.&lt;/p&gt;





&lt;p&gt;That's good advice. Don't skip that step.&lt;/p&gt;





&lt;p&gt;Also remember that if you provide your own:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;webserver/configs/[ENV]/modsec/modsecurity.conf&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;you're not augmenting the default Liferay configuration.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;You're replacing it.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;Your file needs to provide all of the necessary ModSecurity configuration. That detail becomes important very quickly.&lt;/p&gt;





&lt;h2&gt;Local Log Files and Containers Don't Mix Particularly Well&lt;/h2&gt;





&lt;p&gt;The default audit-log configuration typically writes to something like:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;/var/log/modsec_audit.log&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;That's perfectly reasonable on a traditional server.&lt;/p&gt;





&lt;p&gt;The server starts, it runs for months or years, and logs accumulate on its filesystem until something rotates or archives them.&lt;/p&gt;





&lt;p&gt;A PaaS container doesn't work that way.&lt;/p&gt;





&lt;p&gt;Containers can be replaced, restarted, rescheduled, or scaled. A log file living only inside one webserver container belongs to the lifetime of that container.&lt;/p&gt;





&lt;p&gt;So if the goal is to retain ModSecurity output independently of a particular container, writing only to a local file isn't a very useful long-term strategy.&lt;/p&gt;





&lt;p&gt;Liferay's documentation already provides the key change:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLog /dev/stdout&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;This sends the audit output to standard output, allowing it to appear with the webserver service logs in the Liferay Cloud Console making it part of the platform logging stream, but more importantly it means you get ModSec logs from all containers (even those that autoscale up/down) and can download/retain them for as long as you require.&lt;/p&gt;





&lt;p&gt;But this is also where things get interesting.&lt;/p&gt;





&lt;h2&gt;&lt;code&gt;/dev/stdout&lt;/code&gt; Doesn't Mean &amp;quot;Dump Everything&amp;quot;&lt;/h2&gt;





&lt;p&gt;During our troubleshooting, we reached a configuration that looked approximately like this:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditEngine On

SecAuditLogParts ABIJDEFHZK

SecAuditLogType Serial
SecAuditLog /dev/stdout
SecAuditLogFormat JSON&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;At first glance, that seems reasonable.&lt;/p&gt;





&lt;p&gt;Turn auditing on.&lt;/p&gt;





&lt;p&gt;Capture lots of information.&lt;/p&gt;





&lt;p&gt;Use JSON because structured logging is cool.&lt;/p&gt;





&lt;p&gt;Send it all to stdout.&lt;/p&gt;





&lt;p&gt;What could possibly go wrong?&lt;/p&gt;





&lt;p&gt;Quite a lot, actually.&lt;/p&gt;





&lt;h2&gt;&lt;code&gt;SecAuditEngine On&lt;/code&gt; Can Generate a Lot of Data&lt;/h2&gt;





&lt;p&gt;&lt;code&gt;SecAuditEngine&lt;/code&gt; controls which transactions receive an audit record.&lt;/p&gt;





&lt;p&gt;The available values are:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditEngine Off
SecAuditEngine On
SecAuditEngine RelevantOnly&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;&lt;code&gt;On&lt;/code&gt; means &lt;strong&gt;audit every transaction&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;&lt;code&gt;RelevantOnly&lt;/code&gt; means audit transactions that generated a warning or error, or whose response status matches &lt;code&gt;SecAuditLogRelevantStatus&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;For a security audit log, logging every ordinary request usually isn't what you're looking for.&lt;/p&gt;





&lt;p&gt;A normal page can involve dozens or hundreds of requests. Add images, JavaScript, CSS, APIs, probes, monitoring requests, and normal application traffic, and &lt;code&gt;On&lt;/code&gt; can generate an enormous amount of audit data.&lt;/p&gt;





&lt;p&gt;Our working configuration changed this to:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditEngine RelevantOnly&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;For example:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditEngine RelevantOnly
SecAuditLogRelevantStatus &amp;quot;^(?:5|4(?!04))&amp;quot;&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;For a WAF, that's much closer to what you normally want:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;Tell me about the interesting transactions. Don't create another copy of my entire access log.&lt;/p&gt;
&lt;/blockquote&gt;





&lt;h2&gt;Then There Was the &lt;code&gt;E&lt;/code&gt;&lt;/h2&gt;





&lt;p&gt;The second major finding was buried inside this innocent-looking setting:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLogParts ABIJDEFHZK&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Those letters aren't a format.&lt;/p&gt;





&lt;p&gt;They tell ModSecurity &lt;strong&gt;which parts of the HTTP transaction to include in the audit record&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;And one of those letters can make a very big difference:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;E&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;&lt;code&gt;E&lt;/code&gt; tells ModSecurity to include the &lt;strong&gt;response body&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;Think about what that means.&lt;/p&gt;





&lt;p&gt;If the response is a 300 KB HTML page, you can end up putting that response into the audit record.&lt;/p&gt;





&lt;p&gt;Now combine:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditEngine On&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;with:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLogParts ...E...&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;and:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLogFormat JSON&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;and:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLog /dev/stdout&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;You've potentially asked ModSecurity to serialize large response bodies into JSON for every request and push all of it through the container logging pipeline.&lt;/p&gt;





&lt;p&gt;That turned out to be a very important combination in our troubleshooting.&lt;/p&gt;





&lt;p&gt;The change that ultimately helped was removing &lt;code&gt;E&lt;/code&gt;:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;- SecAuditLogParts ABIJDEFHZK
+ SecAuditLogParts ABIJDFHZK&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Same auditing capability.&lt;/p&gt;





&lt;p&gt;Same rules.&lt;/p&gt;





&lt;p&gt;Same request processing.&lt;/p&gt;





&lt;p&gt;But the response body is no longer being stuffed into the audit output.&lt;/p&gt;





&lt;p&gt;And that's an important distinction:&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Removing &lt;code&gt;E&lt;/code&gt; does not disable response-body inspection.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;&lt;code&gt;SecResponseBodyAccess&lt;/code&gt; controls whether ModSecurity examines response bodies.&lt;/p&gt;





&lt;p&gt;&lt;code&gt;SecAuditLogParts&lt;/code&gt; controls what gets &lt;strong&gt;recorded in the audit log&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;Those are two different decisions.&lt;/p&gt;





&lt;h2&gt;So What Do All Those Letters Mean?&lt;/h2&gt;





&lt;p&gt;Rather than copying a value from a sample configuration, you should understand what you're asking ModSecurity to retain.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;A&lt;/code&gt; — Audit Log Header&lt;/h3&gt;





&lt;p&gt;Contains the audit entry header. This part is mandatory.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;B&lt;/code&gt; — Request Headers&lt;/h3&gt;





&lt;p&gt;Contains the HTTP request headers. This is normally very useful when investigating why a rule matched.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;C&lt;/code&gt; — Request Body&lt;/h3&gt;





&lt;p&gt;Contains the request body when one exists and request-body inspection is enabled.&lt;/p&gt;





&lt;p&gt;This can be useful, but request bodies can also contain substantial amounts of data or sensitive information.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;D&lt;/code&gt; — Reserved&lt;/h3&gt;





&lt;p&gt;Reserved for intermediary response headers. It is not currently implemented in ModSecurity 3.x.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;E&lt;/code&gt; — Response Body&lt;/h3&gt;





&lt;p&gt;Contains the response body when response-body inspection is enabled.&lt;/p&gt;





&lt;p&gt;This was the important one in our investigation.&lt;/p&gt;





&lt;p&gt;Response bodies can be &lt;strong&gt;large&lt;/strong&gt;, and including them in centralized audit output can dramatically increase both individual record size and overall log volume.&lt;/p&gt;





&lt;p&gt;Unless you have a specific business or forensic requirement for storing response bodies, I would leave &lt;code&gt;E&lt;/code&gt; out.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;F&lt;/code&gt; — Final Response Headers&lt;/h3&gt;





&lt;p&gt;Contains the final response headers. Useful without carrying the potentially large cost of storing the response body.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;G&lt;/code&gt; — Reserved&lt;/h3&gt;





&lt;p&gt;Reserved for the actual response body and not currently implemented.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;H&lt;/code&gt; — Audit Log Trailer&lt;/h3&gt;





&lt;p&gt;Contains the audit-log trailer and additional transaction information.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;I&lt;/code&gt; — Not Implemented in ModSecurity 3.x&lt;/h3&gt;





&lt;p&gt;Older ModSecurity documentation describes &lt;code&gt;I&lt;/code&gt; as a reduced multipart request body that could be used instead of &lt;code&gt;C&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;The ModSecurity 3.x reference lists it as not implemented.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;J&lt;/code&gt; — Uploaded File Information&lt;/h3&gt;





&lt;p&gt;Contains information about files uploaded using &lt;code&gt;multipart/form-data&lt;/code&gt;.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;K&lt;/code&gt; — Not Implemented in ModSecurity 3.x&lt;/h3&gt;





&lt;p&gt;In older ModSecurity versions, &lt;code&gt;K&lt;/code&gt; represented matched-rule information. In ModSecurity 3.x it is listed as not implemented.&lt;/p&gt;





&lt;h3&gt;&lt;code&gt;Z&lt;/code&gt; — End of Audit Entry&lt;/h3&gt;





&lt;p&gt;Marks the end of the audit entry. Like &lt;code&gt;A&lt;/code&gt;, this is mandatory.&lt;/p&gt;





&lt;h2&gt;Choose the Parts You Actually Need&lt;/h2&gt;





&lt;p&gt;The ModSecurity 3.x documented default is:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;ABCFHZ&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;The configuration we were working with contained:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;ABIJDEFHZK&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;and the critical operational change was:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;ABIJDFHZK&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;removing &lt;code&gt;E&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;If I were designing a brand-new configuration today, though, I wouldn't start by asking:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;What long sequence of letters should I copy?&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;I'd ask:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;What information does the security team actually need?&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;Then select the parts accordingly.&lt;/p&gt;





&lt;p&gt;In particular, make deliberate decisions about:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;C - request body
E - response body
J - uploaded file information&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Those can materially affect log size and potentially the sensitivity of the information you're retaining.&lt;/p&gt;





&lt;h2&gt;Native or JSON?&lt;/h2&gt;





&lt;p&gt;This is another place where two different settings are sometimes conflated.&lt;/p&gt;





&lt;p&gt;The audit &lt;strong&gt;parts&lt;/strong&gt; are selected with:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLogParts ...&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;The audit &lt;strong&gt;format&lt;/strong&gt; is selected separately:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLogFormat Native&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;or:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLogFormat JSON&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;The default ModSecurity format is &lt;code&gt;Native&lt;/code&gt;. JSON is also supported.&lt;/p&gt;





&lt;p&gt;JSON can be very useful.&lt;/p&gt;





&lt;p&gt;If you're feeding logs into a SIEM, writing automated analysis, or extracting rule IDs, anomaly scores, messages, and transaction fields programmatically, JSON is much easier to work with.&lt;/p&gt;





&lt;p&gt;But JSON isn't required to make ModSecurity logging work.&lt;/p&gt;





&lt;p&gt;My recommendation is to make this a &lt;strong&gt;business/use-case decision&lt;/strong&gt;, not a technical checkbox.&lt;/p&gt;





&lt;h3&gt;Use Native when:&lt;/h3&gt;





&lt;ul&gt;
	&lt;li&gt;humans are primarily reading the logs;&lt;/li&gt;
	&lt;li&gt;you want the familiar ModSecurity audit representation;&lt;/li&gt;
	&lt;li&gt;you don't need structured downstream processing.&lt;/li&gt;
&lt;/ul&gt;





&lt;h3&gt;Consider JSON when:&lt;/h3&gt;





&lt;ul&gt;
	&lt;li&gt;you're feeding the records into security tooling;&lt;/li&gt;
	&lt;li&gt;you're building automated filtering or analytics;&lt;/li&gt;
	&lt;li&gt;you need structured fields rather than text parsing.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;But regardless of the format, control what you're putting into each record.&lt;/p&gt;





&lt;p&gt;Changing from Native to JSON doesn't make a huge response body suddenly small.&lt;/p&gt;





&lt;h2&gt;Don't Forget the Other ModSecurity Log&lt;/h2&gt;





&lt;p&gt;One thing that caused some confusion during our work was that ModSecurity information can show up through more than one logging path.&lt;/p&gt;





&lt;p&gt;The detailed transaction-oriented information goes to the &lt;strong&gt;audit log&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;But the familiar messages that look something like:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;ModSecurity: Warning. Matched ...&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;are emitted through Nginx's error logging path.&lt;/p&gt;





&lt;p&gt;So if those are the messages you care about seeing in the Liferay Console, make sure Nginx is also writing its error log to stdout:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;error_log /dev/stdout warn;&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Nginx supports these logging levels:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;debug
info
notice
warn
error
crit
alert
emerg&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Selecting a level includes that level and all more-severe levels.&lt;/p&gt;





&lt;p&gt;In our case, &lt;code&gt;warn&lt;/code&gt; was the right normal operating level.&lt;/p&gt;





&lt;p&gt;During troubleshooting you might temporarily use &lt;code&gt;notice&lt;/code&gt;, &lt;code&gt;info&lt;/code&gt;, or even &lt;code&gt;debug&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;But don't leave highly verbose logging enabled just because more data feels safer.&lt;/p&gt;





&lt;p&gt;Sometimes more logs just means more hay around the needle.&lt;/p&gt;





&lt;h2&gt;Be Careful with &lt;code&gt;SecDebugLogLevel 9&lt;/code&gt;&lt;/h2&gt;





&lt;p&gt;Along the same lines, we used very verbose ModSecurity debug logging while troubleshooting.&lt;/p&gt;





&lt;p&gt;That's appropriate when you're trying to understand why something isn't behaving correctly.&lt;/p&gt;





&lt;p&gt;It isn't something I want running indefinitely.&lt;/p&gt;





&lt;p&gt;For normal operation we brought the level back down:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecDebugLogLevel 3&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;rather than:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecDebugLogLevel 9&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Level 9 can be useful when troubleshooting, but once you understand the problem, turn the noise back down.&lt;/p&gt;





&lt;h2&gt;A Practical PaaS Configuration&lt;/h2&gt;





&lt;p&gt;Pulling the important pieces together, the configuration pattern I'd start from looks more like this:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecRuleEngine ${LCP_WEBSERVER_MODSECURITY}

SecAuditEngine RelevantOnly
SecAuditLogRelevantStatus &amp;quot;^(?:5|4(?!04))&amp;quot;

SecAuditLogParts ABIJDFHZK

SecAuditLogType Serial
SecAuditLog /dev/stdout

SecDebugLogLevel 3&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;And in Nginx:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;error_log /dev/stdout warn;&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Then make an explicit decision about the audit format.&lt;/p&gt;





&lt;p&gt;For Native:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLogFormat Native&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;or simply rely on the native default.&lt;/p&gt;





&lt;p&gt;For structured output:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditLogFormat JSON&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;And again, review &lt;code&gt;SecAuditLogParts&lt;/code&gt; rather than simply copying my string.&lt;/p&gt;





&lt;p&gt;The important operational characteristics are:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;SecAuditEngine RelevantOnly&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;rather than &lt;code&gt;On&lt;/code&gt;, and:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;E is not included in SecAuditLogParts&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;unless you have a deliberate reason for retaining response bodies.&lt;/p&gt;





&lt;h2&gt;What About Access Logs?&lt;/h2&gt;





&lt;p&gt;You may also want the normal Nginx request record in the same centralized stream:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;access_log /dev/stdout main;&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;That can be helpful when correlating a ModSecurity event back to the corresponding request.&lt;/p&gt;





&lt;p&gt;Whether you want all access-log traffic in the Console is a separate operational decision.&lt;/p&gt;





&lt;p&gt;Again, resist the temptation to turn on everything simply because you can.&lt;/p&gt;





&lt;h2&gt;And Then Download the Logs&lt;/h2&gt;





&lt;p&gt;Getting the logs into the Liferay Console solves the container-lifetime problem, but the Console shouldn't necessarily be your organization's permanent audit archive, especially since logs are only kept for 30 days.&lt;/p&gt;





&lt;p&gt;The &lt;a
    href="https://learn.liferay.com/w/liferay-cloud/reference/command-line-tool" rel="noopener noreferrer"&gt;Liferay command-line tool&lt;/a&gt; can retrieve service logs:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;lcp log -p &amp;lt;project&amp;gt;-&amp;lt;environment&amp;gt; -s webserver&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;and constrain the export by time:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;lcp log \
    -p &amp;lt;project&amp;gt;-&amp;lt;environment&amp;gt; \
    -s webserver \
    --since &amp;quot;&amp;lt;start_time&amp;gt;&amp;quot; \
    --until &amp;quot;&amp;lt;end_time&amp;gt;&amp;quot; \
    &amp;gt;&amp;gt; webserver-logs.txt&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;For an organization that needs longer-term security retention, I'd automate this.&lt;/p&gt;





&lt;p&gt;For example, create a scheduled job to download the logs once a week, filter out the log messages not related to ModSec, and then keep those files for as long as you need.&lt;/p&gt;





&lt;p&gt;If you're using JSON audit output, that processing gets particularly easy because you can parse fields instead of relying entirely on string matching.&lt;/p&gt;





&lt;h2&gt;The Bigger Lesson&lt;/h2&gt;





&lt;p&gt;The biggest lesson from this exercise wasn't a magic ModSecurity directive.&lt;/p&gt;





&lt;p&gt;It was that logging in a container platform needs to be treated as a &lt;strong&gt;pipeline&lt;/strong&gt;, not as a file.&lt;/p&gt;





&lt;p&gt;There's the application generating the information.&lt;/p&gt;





&lt;p&gt;There's ModSecurity deciding what should be audited.&lt;/p&gt;





&lt;p&gt;There's Nginx deciding what goes to its error and access logs.&lt;/p&gt;





&lt;p&gt;There's stdout.&lt;/p&gt;





&lt;p&gt;There's the container runtime.&lt;/p&gt;





&lt;p&gt;There's the platform logging infrastructure.&lt;/p&gt;





&lt;p&gt;And finally there's the Console where a human sees the result.&lt;/p&gt;





&lt;p&gt;You can have a perfectly valid ModSecurity configuration and still create a terrible logging configuration.&lt;/p&gt;





&lt;p&gt;In our case, these were all individually reasonable choices:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Audit everything.&lt;/li&gt;
	&lt;li&gt;Include the response.&lt;/li&gt;
	&lt;li&gt;Use JSON.&lt;/li&gt;
	&lt;li&gt;Send it to stdout.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Together, they weren't reasonable.&lt;/p&gt;





&lt;p&gt;The final approach was much simpler:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;Audit the relevant transactions.&lt;/li&gt;
	&lt;li&gt;Don't include giant response bodies unless you actually need them.&lt;/li&gt;
	&lt;li&gt;Send the useful output to stdout.&lt;/li&gt;
	&lt;li&gt;Keep normal logging at a sensible verbosity.&lt;/li&gt;
	&lt;li&gt;Export what you need for long-term retention.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;That's a configuration you can live with.&lt;/p&gt;





&lt;p&gt;And, more importantly, it's one the logging pipeline can live with too.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2026-08-18T18:45:00Z</dc:date>
  </entry>
  <entry>
    <title>When a CVE Isn't a Liferay Vulnerability</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126625355" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126625355</id>
    <updated>2026-08-17T16:56:54Z</updated>
    <published>2026-08-16T19:22:00Z</published>
    <summary type="html">&lt;p&gt;Security scanners are very good at finding things.&lt;/p&gt;





&lt;p&gt;Run one against a Liferay DXP installation and it will inventory third-party libraries, determine their versions, compare those versions against vulnerability databases such as the NVD, and produce a list of CVEs.&lt;/p&gt;





&lt;p&gt;Then somebody opens a Liferay Support ticket.&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;We're running version X of library Y. CVE-Z says that version is vulnerable. When will Liferay upgrade it?&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;Sometimes the answer is exactly what you would expect: Liferay upgrades the library.&lt;/p&gt;





&lt;p&gt;But quite often the answer is something closer to:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;Liferay DXP is not affected by this vulnerability.&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;That answer can be frustrating, particularly when the scanner has assigned the finding a High or Critical severity. The JAR is there. The version matches. The CVE exists. How can Liferay say it isn't vulnerable?&lt;/p&gt;





&lt;p&gt;Because those are actually three different statements.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;The library is present.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;A vulnerability exists in that version of the library.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;That vulnerability can be exploited through Liferay DXP.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;A security scanner can usually establish the first two. Establishing the third requires understanding how the software actually works.&lt;/p&gt;





&lt;p&gt;And that is where things get interesting.&lt;/p&gt;





&lt;h2&gt;The Scanner Isn't Wrong&lt;/h2&gt;





&lt;p&gt;Let's start by giving the scanner some credit.&lt;/p&gt;





&lt;p&gt;If the scanner says that Liferay contains a particular version of a third-party library and that version is associated with a CVE, it may be completely correct.&lt;/p&gt;





&lt;p&gt;The mistake is treating that information as proof that the resulting Liferay installation is exploitable.&lt;/p&gt;





&lt;p&gt;Software Composition Analysis tools generally work from something resembling this model:&lt;code&gt; &lt;/code&gt;&lt;/p&gt;





&lt;p&gt;&lt;code&gt;&lt;img data-fileentryid="126625365" src="https://liferay.dev/documents/portlet_file_entry/14/sca-tools.png/2b53684c-cd2e-17dc-31ec-9350616f158c"&gt;&lt;/code&gt;&lt;/p&gt;





&lt;p&gt;That's useful information, but it is only the beginning of vulnerability analysis.&lt;/p&gt;





&lt;p&gt;A CVE usually applies to some particular behavior within a library. Exploiting it may require a certain class to be used, a particular feature to be enabled, a specific configuration, attacker-controlled input to reach a particular method, or some combination of all of these.&lt;/p&gt;





&lt;p&gt;If the application never exposes that attack surface, the vulnerable code can physically exist inside the JAR without providing an exploitable path through the application.&lt;/p&gt;





&lt;p&gt;The scanner has identified a &lt;strong&gt;potential vulnerability&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;Now someone has to determine whether it is a &lt;strong&gt;reachable vulnerability&lt;/strong&gt;.&lt;/p&gt;





&lt;h2&gt;Spring Is a Good Example&lt;/h2&gt;





&lt;p&gt;Consider Spring 6.2.9 as an example.&lt;/p&gt;





&lt;p&gt;There are several CVEs associated with Spring components around these versions, including:&lt;/p&gt;





&lt;table border="1" cellpadding="1" cellspacing="1"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;CVE&lt;/th&gt;
			&lt;th&gt;Area&lt;/th&gt;
			&lt;th&gt;Important Exploitation Condition&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;CVE-2025-41242&lt;/td&gt;
			&lt;td&gt;Spring MVC path traversal&lt;/td&gt;
			&lt;td&gt;Requires particular Spring static-resource handling combined with a Servlet container that does not reject the malicious path sequences.&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;CVE-2025-22228&lt;/td&gt;
			&lt;td&gt;Spring Security &lt;code&gt;BCryptPasswordEncoder&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;Requires use of the affected password encoder behavior with passwords longer than 72 characters.&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;CVE-2025-41249&lt;/td&gt;
			&lt;td&gt;Spring annotation detection&lt;/td&gt;
			&lt;td&gt;Relevant when Spring Security method security is enabled and authorization annotations occur in particular parameterized type hierarchies.&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt;These aren't hypothetical qualifications added by Liferay. They come directly from Spring's own security advisories. For example, Spring says CVE-2025-41242 depends on several conditions and specifically notes that default Tomcat and Jetty security behavior prevents the vulnerability. CVE-2025-41249 similarly identifies &lt;code&gt;@EnableMethodSecurity&lt;/code&gt; as part of the affected scenario.&lt;/p&gt;





&lt;p&gt;CVE-2025-22228 affects &lt;code&gt;BCryptPasswordEncoder.matches()&lt;/code&gt; when passwords exceed 72 characters and the first 72 characters match. Again, that is a real vulnerability, but an application has to actually use that Spring Security functionality in an exploitable authentication path before it becomes an application vulnerability.&lt;/p&gt;





&lt;p&gt;And who knows? By the time you're reading this there may be several more CVEs associated with these versions.&lt;/p&gt;





&lt;p&gt;That's the nature of modern software.&lt;/p&gt;





&lt;p&gt;What matters is what happens next.&lt;/p&gt;





&lt;h2&gt;Presence Is Not the Same as Exploitability&lt;/h2&gt;





&lt;p&gt;When Liferay's application security team evaluates one of these reports, the CVE number and library version are just the starting point.&lt;/p&gt;





&lt;p&gt;The real questions look more like this:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;What exactly is the vulnerable code?&lt;/li&gt;
	&lt;li&gt;What conditions are required to exploit it?&lt;/li&gt;
	&lt;li&gt;Does Liferay use that code?&lt;/li&gt;
	&lt;li&gt;Is the vulnerable capability enabled?&lt;/li&gt;
	&lt;li&gt;Can an attacker reach it?&lt;/li&gt;
	&lt;li&gt;Can attacker-controlled input reach the vulnerable path?&lt;/li&gt;
	&lt;li&gt;Does Liferay's own configuration or surrounding architecture prevent the exploit?&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;Only after answering those questions can you determine the actual risk to Liferay DXP.&lt;/p&gt;





&lt;p&gt;This concept is often called &lt;strong&gt;reachability&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;Imagine a third-party JAR containing 5,000 classes. One method in one class contains a vulnerability.&lt;/p&gt;





&lt;p&gt;If Liferay never loads that class, never invokes that method, never enables the associated feature, and provides no path for attacker-controlled input to reach it, replacing the entire JAR may change the version number reported by your scanner without materially improving the security of the platform.&lt;/p&gt;





&lt;p&gt;That's an important distinction.&lt;/p&gt;





&lt;p&gt;Security isn't about achieving the highest possible dependency version number.&lt;/p&gt;





&lt;p&gt;It's about eliminating exploitable attack paths.&lt;/p&gt;





&lt;h2&gt;What Happens When Liferay Investigates a CVE?&lt;/h2&gt;





&lt;p&gt;Liferay has a dedicated application security team continuously reviewing vulnerabilities reported against both Liferay code and the third-party software included with DXP.&lt;/p&gt;





&lt;p&gt;Often the CVE has already been investigated before a customer reports it through Support.&lt;/p&gt;





&lt;p&gt;The analysis goes deeper than the CVE headline.&lt;/p&gt;





&lt;p&gt;The team looks at what causes the vulnerability, what is required to exploit it, and how a working exploit would behave. Then they compare those requirements against the way the affected library is actually being used by Liferay DXP.&lt;/p&gt;





&lt;p&gt;The team also leverages tools like &lt;a href="https://konvu.com" rel="noopener noreferrer"&gt;Konvu&lt;/a&gt; and other AI tools during the analysis to ensure it's not a cursory review.&lt;/p&gt;





&lt;div
    class="overflow-auto portlet-msg-info"&gt;You can read more about CVEs the security team has reviewed along with their classifications here: &lt;a
    href="https://support.liferay.com/security-vulnerabilities" rel="noopener noreferrer"&gt;https://support.liferay.com/security-vulnerabilities&lt;/a&gt;.&lt;/div&gt;





&lt;p&gt;Sometimes that analysis concludes that Liferay is affected.&lt;/p&gt;





&lt;p&gt;Sometimes it concludes that Liferay is not affected.&lt;/p&gt;





&lt;p&gt;There are even cases where the answer depends on configuration.&lt;/p&gt;





&lt;p&gt;That's exactly the kind of application-level context that a simple dependency/version scan cannot provide.&lt;/p&gt;





&lt;h2&gt;The Log4j 1 Lesson&lt;/h2&gt;





&lt;p&gt;Anyone who dealt with enterprise security scanning during the later years of Log4j 1 probably remembers this problem particularly well.&lt;/p&gt;





&lt;p&gt;Log4j 1 reached end of life, but applications continued using it for years afterward. As vulnerabilities were discovered, scanners accumulated an increasingly alarming collection of findings.&lt;/p&gt;





&lt;p&gt;Some of them were severe.&lt;/p&gt;





&lt;table border="1" cellpadding="1" cellspacing="1"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;CVE&lt;/th&gt;
			&lt;th&gt;Component&lt;/th&gt;
			&lt;th&gt;Attack Surface&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;CVE-2019-17571&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;SocketServer&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;Deserialization through the Log4j network logging server.&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;CVE-2021-4104&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;JMSAppender&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;JNDI behavior associated with JMS logging configuration.&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;CVE-2022-23302&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;JMSSink&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;JNDI and deserialization behavior through the JMS sink.&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;CVE-2022-23305&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;JDBCAppender&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;SQL injection through the database logging appender.&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;CVE-2022-23307&lt;/td&gt;
			&lt;td&gt;Chainsaw&lt;/td&gt;
			&lt;td&gt;Deserialization in the Chainsaw logging viewer.&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt;These vulnerabilities were real. Nobody was disputing that.&lt;/p&gt;





&lt;p&gt;But look at the affected functionality.&lt;/p&gt;





&lt;p&gt;Liferay wasn't running a Log4j &lt;code&gt;SocketServer&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;It wasn't using Chainsaw.&lt;/p&gt;





&lt;p&gt;It wasn't using the &lt;code&gt;JDBCAppender&lt;/code&gt;.&lt;/p&gt;





&lt;p&gt;It wasn't using the vulnerable JMS logging components.&lt;/p&gt;





&lt;p&gt;There was no route through a normal Liferay DXP installation for an attacker to reach those vulnerable features.&lt;/p&gt;





&lt;p&gt;That didn't stop scanners from finding them.&lt;/p&gt;





&lt;p&gt;From the scanner's perspective, everything was working exactly as designed:&lt;code&gt; &lt;/code&gt;&lt;/p&gt;





&lt;p&gt;&lt;code&gt;&lt;img data-fileentryid="126625376" src="https://liferay.dev/documents/portlet_file_entry/14/log4j1.png/0e45cbd7-a1bd-b6a2-177b-07c5f0cc09e0"&gt;&lt;/code&gt;&lt;/p&gt;





&lt;p&gt;The scanner had no idea whether Liferay was using &lt;code&gt;JDBCAppender&lt;/code&gt;, &lt;code&gt;SocketServer&lt;/code&gt;, or anything else inside the library.&lt;/p&gt;





&lt;p&gt;It only knew the library was there.&lt;/p&gt;





&lt;h2&gt;But Sometimes &amp;quot;Not Vulnerable&amp;quot; Isn't Enough&lt;/h2&gt;





&lt;p&gt;This creates a practical problem.&lt;/p&gt;





&lt;p&gt;A Critical CVE sitting on a security report is difficult for many organizations to accept, even when the vendor has analyzed it and determined that the product is not affected.&lt;/p&gt;





&lt;p&gt;Security policy might say every Critical CVE must be eliminated.&lt;/p&gt;





&lt;p&gt;An auditor might require remediation.&lt;/p&gt;





&lt;p&gt;A customer's vulnerability management platform may refuse to close the finding.&lt;/p&gt;





&lt;p&gt;And eventually someone asks:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;Why doesn't Liferay just upgrade the library and make the scanner happy?&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;The Log4j 1 situation became a good example of how this can play out.&lt;/p&gt;





&lt;p&gt;Apache had stopped maintaining Log4j 1, while moving directly to Log4j 2 represented a much larger technical change.&lt;/p&gt;





&lt;p&gt;An intermediate solution was reload4j.&lt;/p&gt;





&lt;p&gt;Reload4j is a binary-compatible fork of Log4j 1.2.17 designed specifically to harden the old Log4j implementation against these kinds of vulnerabilities. Among other changes, it addressed the &lt;code&gt;JMSAppender&lt;/code&gt;, &lt;code&gt;JMSSink&lt;/code&gt;, &lt;code&gt;SocketServer&lt;/code&gt;, Chainsaw, and &lt;code&gt;JDBCAppender&lt;/code&gt; issues.&lt;/p&gt;





&lt;p&gt;Liferay adopted reload4j for earlier DXP releases while eventually moving DXP 7.4 to Log4j 2.&lt;/p&gt;





&lt;p&gt;That gave Liferay a migration path without forcing a risky architectural change into older supported releases merely to satisfy dependency scanners.&lt;/p&gt;





&lt;h2&gt;The Three Basic Outcomes&lt;/h2&gt;





&lt;p&gt;When a vulnerability is identified in a third-party dependency, there are generally three reasonable outcomes.&lt;/p&gt;





&lt;h3&gt;The Product Isn't Affected&lt;/h3&gt;





&lt;p&gt;The investigation can establish that the vulnerable capability isn't reachable through Liferay.&lt;/p&gt;





&lt;p&gt;No code change may be necessary.&lt;/p&gt;





&lt;p&gt;I tend to prefer &lt;strong&gt;not affected&lt;/strong&gt; or &lt;strong&gt;not exploitable in Liferay's usage&lt;/strong&gt; over the phrase &lt;strong&gt;false positive&lt;/strong&gt; here.&lt;/p&gt;





&lt;p&gt;The CVE itself isn't false.&lt;/p&gt;





&lt;p&gt;The scanner may have correctly identified the library.&lt;/p&gt;





&lt;p&gt;What is false is the conclusion that the CVE necessarily represents an exploitable Liferay vulnerability.&lt;/p&gt;





&lt;p&gt;This decision should never be made casually. It requires understanding both the vulnerability and Liferay's use of the affected library.&lt;/p&gt;





&lt;h3&gt;Patch or Harden the Dependency&lt;/h3&gt;





&lt;p&gt;Sometimes the vulnerability matters, but upgrading isn't practical.&lt;/p&gt;





&lt;p&gt;The upstream project may be abandoned. The fixed version may contain incompatible changes. The affected capability may be something Liferay doesn't need at all.&lt;/p&gt;





&lt;p&gt;In those cases, a focused patch or hardened dependency can make more sense than a major upgrade.&lt;/p&gt;





&lt;p&gt;Removing unused vulnerable functionality can be particularly effective because code that no longer exists has a remarkably small attack surface.&lt;/p&gt;





&lt;p&gt;Of course, maintaining patches to somebody else's software has a cost too. Whenever possible, fixes should remain aligned with or be contributed back to the upstream project rather than creating a permanent private fork.&lt;/p&gt;





&lt;h3&gt;Upgrade the Dependency&lt;/h3&gt;





&lt;p&gt;And sometimes upgrading really is the correct answer.&lt;/p&gt;





&lt;p&gt;If a compatible maintenance release contains the fix, upgrading can be relatively straightforward.&lt;/p&gt;





&lt;p&gt;The difficulty increases significantly when remediation requires a major version change.&lt;/p&gt;





&lt;p&gt;At that point this isn't a security patch anymore.&lt;/p&gt;





&lt;p&gt;It is a software upgrade.&lt;/p&gt;





&lt;h2&gt;Why Not Just Upgrade Every Time?&lt;/h2&gt;





&lt;p&gt;If you've ever upgraded Liferay itself, you already know the answer.&lt;/p&gt;





&lt;p&gt;Software libraries are dependencies because applications depend on them.&lt;/p&gt;





&lt;p&gt;Changing a major dependency can introduce:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;API incompatibilities&lt;/li&gt;
	&lt;li&gt;behavioral changes&lt;/li&gt;
	&lt;li&gt;transitive dependency changes&lt;/li&gt;
	&lt;li&gt;classloading differences&lt;/li&gt;
	&lt;li&gt;OSGi package compatibility issues&lt;/li&gt;
	&lt;li&gt;configuration changes&lt;/li&gt;
	&lt;li&gt;unexpected runtime regressions&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;Even a library that compiles successfully after an upgrade can behave differently at runtime.&lt;/p&gt;





&lt;p&gt;Then the updated platform has to be tested.&lt;/p&gt;





&lt;p&gt;Liferay releases go through extensive testing precisely because changing something deep in the platform can have consequences far away from the code that changed.&lt;/p&gt;





&lt;p&gt;This leads to a somewhat counterintuitive security principle:&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;An unnecessary security upgrade is not risk free.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;Suppose Liferay establishes with high confidence that a particular CVE cannot be exploited through DXP.&lt;/p&gt;





&lt;p&gt;Upgrading to a new major version of that dependency may therefore reduce essentially zero exploitable security risk while introducing new compatibility and regression risk.&lt;/p&gt;





&lt;p&gt;That isn't automatically a good trade.&lt;/p&gt;





&lt;p&gt;Security engineering should minimize &lt;strong&gt;total platform risk&lt;/strong&gt;, not maximize dependency version numbers.&lt;/p&gt;





&lt;p&gt;And engineering resources aren't infinite either.&lt;/p&gt;





&lt;p&gt;Every week spent forcing unnecessary third-party upgrades through development, compatibility work, automated testing, manual testing, stabilization, and release engineering is time not being spent fixing actual vulnerabilities or improving the product.&lt;/p&gt;





&lt;p&gt;I would much rather see those resources focused on exploitable security issues and meaningful improvements to Liferay DXP.&lt;/p&gt;





&lt;h2&gt;There Is One Important Catch: Your Code&lt;/h2&gt;





&lt;p&gt;There's another side to this discussion that customers building their own Liferay extensions need to understand.&lt;/p&gt;





&lt;p&gt;When Liferay says a third-party CVE is not exploitable in Liferay DXP, that assessment applies to &lt;strong&gt;Liferay's use of the library&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;Your customization can change that answer.&lt;/p&gt;





&lt;p&gt;Suppose Liferay bundles a library containing a vulnerable feature but never uses that feature.&lt;/p&gt;





&lt;p&gt;Then you create an OSGi module that imports the library and starts using exactly that functionality.&lt;/p&gt;





&lt;p&gt;You may have just created the attack surface that didn't previously exist.&lt;/p&gt;





&lt;p&gt;The same principle applies if you:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;enable functionality that Liferay leaves disabled,&lt;/li&gt;
	&lt;li&gt;expose a library API through a custom REST endpoint,&lt;/li&gt;
	&lt;li&gt;pass attacker-controlled input into code that Liferay only uses with trusted data,&lt;/li&gt;
	&lt;li&gt;introduce a vulnerable appender, parser, serializer, or network listener,&lt;/li&gt;
	&lt;li&gt;or change security-related configuration around a bundled dependency.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;At that point, the original Liferay analysis may still be completely correct.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Liferay isn't vulnerable. Your customization is.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;This is one reason security analysis for customized Liferay installations can't stop with Liferay's own vulnerability statements.&lt;/p&gt;





&lt;p&gt;Your code is part of the application too.&lt;/p&gt;





&lt;h2&gt;Don't Replace Liferay JARs Just to Silence a Scanner&lt;/h2&gt;





&lt;p&gt;This leads to one final warning.&lt;/p&gt;





&lt;p&gt;When customers encounter one of these findings, there can be a temptation to &amp;quot;fix&amp;quot; the problem themselves by dropping a newer version of the affected JAR into Liferay.&lt;/p&gt;





&lt;p&gt;Don't do that casually.&lt;/p&gt;





&lt;p&gt;Liferay is a large application with carefully managed dependency versions, OSGi package relationships, transitive dependencies, and runtime expectations.&lt;/p&gt;





&lt;p&gt;Replacing a platform dependency underneath it can create subtle failures that are extremely difficult to diagnose.&lt;/p&gt;





&lt;p&gt;It can also move the installation outside the configuration Liferay Support has actually tested and supports.&lt;/p&gt;





&lt;p&gt;You may successfully make the CVE disappear from the scan while introducing an entirely different production problem.&lt;/p&gt;





&lt;p&gt;That's not security improvement.&lt;/p&gt;





&lt;p&gt;That's vulnerability-report whack-a-mole.&lt;/p&gt;





&lt;h2&gt;What Should You Do With a Scanner Finding?&lt;/h2&gt;





&lt;p&gt;Security scans are still valuable.&lt;/p&gt;





&lt;p&gt;When one identifies a third-party CVE in Liferay, report it. Include the library, version, CVE, scanner output, and any information you have about how you believe the vulnerability could be exploited.&lt;/p&gt;





&lt;p&gt;But the most useful question isn't:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;When will you upgrade this JAR?&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;A better set of questions is:&lt;/p&gt;





&lt;blockquote&gt;
&lt;p&gt;Is Liferay DXP affected by this CVE?&lt;/p&gt;

&lt;p&gt;Is the vulnerable functionality used by Liferay?&lt;/p&gt;

&lt;p&gt;Under what configuration would the vulnerability become exploitable?&lt;/p&gt;

&lt;p&gt;Does the assessment apply only to Liferay out of the box, or are there concerns for custom OSGi modules?&lt;/p&gt;
&lt;/blockquote&gt;





&lt;p&gt;Those questions get us much closer to the thing we actually care about.&lt;/p&gt;





&lt;p&gt;Risk.&lt;/p&gt;





&lt;h2&gt;A CVE Is the Beginning of the Investigation&lt;/h2&gt;





&lt;p&gt;A CVE deserves attention.&lt;/p&gt;





&lt;p&gt;A Critical CVE deserves serious attention.&lt;/p&gt;





&lt;p&gt;But a CVE attached to a third-party JAR isn't automatically proof that the application containing that JAR is vulnerable.&lt;/p&gt;





&lt;p&gt;Good vulnerability management requires more than matching version numbers.&lt;/p&gt;





&lt;p&gt;It requires understanding attack surfaces, reachability, configuration, data flow, and how the affected software is actually being used.&lt;/p&gt;





&lt;p&gt;Sometimes that investigation should result in an immediate dependency upgrade.&lt;/p&gt;





&lt;p&gt;Sometimes it should result in a targeted patch.&lt;/p&gt;





&lt;p&gt;And sometimes the technically correct answer really is:&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Liferay DXP is not affected.&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;That doesn't mean the CVE was ignored.&lt;/p&gt;





&lt;p&gt;Quite the opposite.&lt;/p&gt;





&lt;p&gt;It means someone did the work that the scanner couldn't.&lt;/p&gt;





&lt;p&gt;And that is exactly what we should want from a product security team.&lt;/p&gt;





&lt;p&gt;The goal isn't to make every CVE identifier disappear from a dependency report at any cost. The goal is to keep exploitable vulnerabilities out of the platform while avoiding unnecessary changes that introduce new compatibility and operational risk.&lt;/p&gt;





&lt;p&gt;So the next time a scanner finds a CVE in a third-party library bundled with Liferay, don't stop at:&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Is this version listed in the NVD?&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;Ask the more important question:&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Can an attacker actually reach and exploit it through our Liferay environment?&lt;/strong&gt;&lt;/p&gt;





&lt;p&gt;The scanner gives you the starting point.&lt;/p&gt;





&lt;p&gt;It doesn't always give you the verdict.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2026-08-16T19:22:00Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP 2026.Q3 Release Webinar</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126531996" />
    <author>
      <name>Ben Turner</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126531996</id>
    <updated>2026-09-02T00:57:46Z</updated>
    <published>2026-08-11T05:32:00Z</published>
    <summary type="html">&lt;p&gt;Hi everyone,&lt;/p&gt;





&lt;p&gt;I'm super excited to announce that the Release Webinar for the 2026.Q3 release of Liferay DXP is coming in just a couple of weeks - on Wednesday, August 26th.&lt;/p&gt;





&lt;p&gt;Register now to guarantee your spot to learn about all of the new features, updated capabilities, and add-on modules.&lt;/p&gt;





&lt;p&gt;Of particular interest in Q3 are:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;AI Hub&lt;/strong&gt;, &lt;strong&gt;Content Marketing Platform&lt;/strong&gt; (CMP), &lt;strong&gt;Liferay Data Platform&lt;/strong&gt; (LDP) &lt;em&gt;and&lt;/em&gt; &lt;strong&gt;Digital Sales Rooms&lt;/strong&gt; (DSR) all move to GA status - and introduce new features&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Cloud Native&lt;/strong&gt; adds GA support for GCP Ready and Kubernetes Ready&lt;/li&gt;
	&lt;li&gt;New &lt;strong&gt;Design Libraries&lt;/strong&gt; feature brings a central place to build and reuse design assets across multiple sites.&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;And, much more across the platform!&lt;/p&gt;





&lt;p&gt;Attending live lets you hear about all of the new features coming as well as letting you participate in a live Q&amp;amp;A with members of our Product Management team. &lt;/p&gt;





&lt;p&gt;While we will, as always, &lt;strong&gt;record and share&lt;/strong&gt; the session for those that can't make it, the &lt;strong&gt;Q&amp;amp;A section is only available if you attend live&lt;/strong&gt;!&lt;/p&gt;





&lt;p&gt;Click the links below to Register for the session that best suits your timezone.&lt;/p&gt;





&lt;p&gt;&lt;em&gt;(Both sessions are identical, you only need to attend one!)&lt;/em&gt;&lt;/p&gt;





&lt;table border="1" cellpadding="1"
        cellspacing="1"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th
        scope="col"&gt;SESSION A - EMEA/APAC&lt;/th&gt;
			&lt;th scope="col"&gt;SESSION B - AMERICAS&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;Topic: 2026.Q3 Release Webinar&lt;/td&gt;
			&lt;td&gt;Topic: 2026.Q3 Release Webinar&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;Date: August 26, 2026&lt;br&gt;
			(Listed by Time Zone)&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;Date: August 26, 2026&lt;br&gt;
			(Listed by Time Zone)&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;ul&gt;
				&lt;li&gt;08:00 - UTC&lt;/li&gt;
				&lt;li&gt;09:00 - UK/IRE (BST)&lt;/li&gt;
				&lt;li&gt;10:00 - Central Europe (CEST)&lt;/li&gt;
				&lt;li&gt;12:00 - Dubai (GST)&lt;/li&gt;
				&lt;li&gt;13:30 - India (IST)&lt;/li&gt;
				&lt;li&gt;16:00 - Singapore (SGT)&lt;/li&gt;
				&lt;li&gt;17:00 - Japan (JST)&lt;/li&gt;
				&lt;li&gt;18:00 - Sydney (AEST)&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/td&gt;
			&lt;td&gt;
			&lt;ul&gt;
				&lt;li&gt;2:00 pm - Los Angeles (PDT)&lt;/li&gt;
				&lt;li&gt;3:00 pm - Mexico City (CST)&lt;/li&gt;
				&lt;li&gt;4:00 pm - Chicago (CDT)&lt;/li&gt;
				&lt;li&gt;5:00 pm - New York (EDT)&lt;/li&gt;
				&lt;li&gt;6:00 pm - Recife (BRT)&lt;/li&gt;
				&lt;li&gt;9:00 pm - UTC&lt;/li&gt;
				&lt;li&gt;7:00am - Sydney (AEDT)&lt;br&gt;
				&lt;em&gt;(August 27)&lt;/em&gt;&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt; &lt;/p&gt;





&lt;p&gt;To learn more, you can also check out the Release Webinar &lt;a
    href="https://www.liferay.com/web/lr/quarterly-release-webinar-q3-2026"
    rel="noopener noreferrer" target="_blank"&gt;landing page&lt;/a&gt;.&lt;/p&gt;





&lt;p&gt;See you there!&lt;/p&gt;





&lt;p&gt;Cheers,&lt;/p&gt;





&lt;p&gt;Ben&lt;/p&gt;





&lt;p&gt;======================================================&lt;/p&gt;





&lt;h4&gt;SESSION REPLAY AND PDF&lt;/h4&gt;









&lt;p&gt;So, the event is over, but the memories remain - you can now access the recording of the session along with a PDF of the presentation &lt;a
    href="https://www.liferay.com/web/lr/quarterly-release-webinar-q3-2026-recording"
    rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;





&lt;p&gt;======================================================&lt;/p&gt;</summary>
    <dc:creator>Ben Turner</dc:creator>
    <dc:date>2026-08-11T05:32:00Z</dc:date>
  </entry>
  <entry>
    <title>OIDC SLO in Liferay DXP</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126438487" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126438487</id>
    <updated>2026-08-05T17:04:04Z</updated>
    <published>2026-08-05T16:26:00Z</published>
    <summary type="html">&lt;p&gt;If you've searched for information about OpenID Connect (OIDC) Single Logout (SLO) in Liferay, you've probably come across answers stating that it isn't supported. That answer was accurate for a long time, and it still occasionally appears in support discussions today.&lt;/p&gt;





&lt;p&gt;Beginning with &lt;strong&gt;Liferay DXP 2026.Q1&lt;/strong&gt;, however, that answer is no longer correct.&lt;/p&gt;





&lt;p&gt;Liferay now supports the &lt;strong&gt;OpenID Connect Back-Channel Logout&lt;/strong&gt; specification, allowing an OpenID Provider (OP) to notify Liferay that a user's central authentication session has ended so the corresponding portal session can be terminated as well.&lt;/p&gt;





&lt;p&gt;This isn't every logout mechanism defined by the OpenID Connect specifications, and that's an important distinction. In this post we'll look at what is supported today, how it works, how to configure it, and what it means for production deployments.&lt;/p&gt;





&lt;h2&gt;Understanding the Terminology&lt;/h2&gt;





&lt;p&gt;If you're familiar with SAML, the terminology can be a little confusing because OpenID Connect uses different names for similar concepts.&lt;/p&gt;





&lt;table border="1" cellpadding="5" cellspacing="5"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;SAML&lt;/th&gt;
			&lt;th&gt;OpenID Connect&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;Identity Provider (IdP)&lt;/td&gt;
			&lt;td&gt;OpenID Provider (OP)&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;Service Provider (SP)&lt;/td&gt;
			&lt;td&gt;Relying Party (RP)&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt;Liferay's OpenID Connect implementation only acts as a &lt;strong&gt;Relying Party (RP)&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;In other words, Liferay delegates authentication to an external OpenID Provider such as Keycloak, Microsoft Entra ID, Okta, or another standards-compliant identity provider. Liferay does not become an OpenID Provider itself.&lt;/p&gt;





&lt;p&gt;That distinction explains why only certain OpenID Connect specifications apply to Liferay.&lt;/p&gt;





&lt;h2&gt;There Isn't Just One &amp;quot;OIDC Logout&amp;quot;&lt;/h2&gt;





&lt;p&gt;One of the biggest sources of confusion is that people talk about &amp;quot;OIDC Single Logout&amp;quot; as though it were a single feature.&lt;/p&gt;





&lt;p&gt;It isn't.&lt;/p&gt;





&lt;p&gt;OpenID Connect defines multiple specifications for ending authenticated sessions, each designed for different scenarios.&lt;/p&gt;





&lt;p&gt;Some involve browser redirects. Others use hidden iframes. Others avoid the browser entirely and rely on secure server-to-server communication.&lt;/p&gt;





&lt;p&gt;As of &lt;strong&gt;Liferay DXP 2026.Q1&lt;/strong&gt;, Liferay implements the &lt;strong&gt;Back-Channel Logout&lt;/strong&gt; specification.&lt;/p&gt;





&lt;p&gt;Support for &lt;strong&gt;RP-Initiated Logout&lt;/strong&gt;, where Liferay requests that the OpenID Provider terminate the user's single sign-on session, is planned for a future release. As always, roadmap items are subject to change.&lt;/p&gt;





&lt;p&gt;Understanding which logout specification is being discussed is important because saying &amp;quot;OIDC logout is supported&amp;quot; or &amp;quot;OIDC logout isn't supported&amp;quot; doesn't tell the whole story.&lt;/p&gt;





&lt;h2&gt;Why Back-Channel Logout Exists&lt;/h2&gt;





&lt;p&gt;Consider a fairly typical enterprise deployment.&lt;/p&gt;





&lt;p&gt;A user authenticates through Keycloak (or any OIDC OP) and gains access to several applications.&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126438503" src="https://liferay.dev/documents/portlet_file_entry/14/slo-01.png/cdaef42b-bf15-484d-c734-1e4a1be7a224"&gt;&lt;/p&gt;





&lt;p&gt;The user now has active authenticated sessions in each application.&lt;/p&gt;





&lt;p&gt;Later, an administrator disables the account or terminates the user's identity provider session.&lt;/p&gt;





&lt;p&gt;Without Single Logout, the user has technically been logged out of the identity provider, but every application still has its own active session.&lt;/p&gt;





&lt;p&gt;The user may continue working in Liferay until the portal session expires naturally.&lt;/p&gt;





&lt;p&gt;The same may be true for Grafana, Jenkins, or any other relying party.&lt;/p&gt;





&lt;p&gt;That's clearly not ideal.&lt;/p&gt;





&lt;p&gt;Back-Channel Logout solves this problem by allowing the OpenID Provider to notify every participating application that the central authentication session has ended.&lt;/p&gt;





&lt;p&gt;Each application can then invalidate its own local session immediately.&lt;/p&gt;





&lt;h2&gt;How Back-Channel Logout Works&lt;/h2&gt;





&lt;p&gt;Unlike browser-based logout mechanisms, Back-Channel Logout is entirely server-to-server.&lt;/p&gt;





&lt;p&gt;The user's browser isn't involved.&lt;/p&gt;





&lt;p&gt;There are no redirects.&lt;/p&gt;





&lt;p&gt;There are no hidden iframes.&lt;/p&gt;





&lt;p&gt;Instead, the OpenID Provider sends a signed &lt;strong&gt;Logout Token&lt;/strong&gt; directly to each registered relying party.&lt;/p&gt;





&lt;p&gt;The overall flow looks like this.&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126438514" src="https://liferay.dev/documents/portlet_file_entry/14/slo-02.png/63b49677-e252-cb5e-d82f-c0cbff668389"&gt;&lt;/p&gt;





&lt;p&gt;From the user's perspective, nothing happens in the browser until they attempt another request.&lt;/p&gt;





&lt;p&gt;The next interaction with Liferay discovers that the authenticated session no longer exists, and the user must authenticate again.&lt;/p&gt;





&lt;h2&gt;Liferay's Implementation&lt;/h2&gt;





&lt;p&gt;Liferay's implementation follows the OpenID Foundation's Back-Channel Logout specification.&lt;/p&gt;





&lt;p&gt;Rather than implementing provider-specific integrations, Liferay focuses on standards compliance, allowing it to interoperate with any OpenID Provider that implements the same specification.&lt;/p&gt;





&lt;p&gt;Once OpenID Connect is configured, Liferay exposes the following endpoint:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;/o/open_id_connect/backchannel_logout&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;When the OpenID Provider determines that a user's authenticated session has ended, it sends a signed Logout Token to this endpoint.&lt;/p&gt;





&lt;p&gt;Liferay validates the token.&lt;/p&gt;





&lt;p&gt;If validation succeeds, Liferay identifies the corresponding authenticated portal session and invalidates it.&lt;/p&gt;





&lt;p&gt;That's the entire logout flow from Liferay's perspective.&lt;/p&gt;





&lt;h2&gt;Configuring Back-Channel Logout&lt;/h2&gt;





&lt;p&gt;The good news is that there isn't much additional configuration required inside Liferay.&lt;/p&gt;





&lt;p&gt;If OpenID Connect is already configured, enabling Back-Channel Logout primarily involves registering Liferay's logout endpoint with your OpenID Provider.&lt;/p&gt;





&lt;p&gt;The process typically looks like this:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;Configure OpenID Connect normally in Liferay.&lt;/li&gt;
	&lt;li&gt;Configure your OpenID Provider as you normally would.&lt;/li&gt;
	&lt;li&gt;Register Liferay's Back-Channel Logout endpoint:&lt;/li&gt;
&lt;/ol&gt;





&lt;pre&gt;
&lt;code&gt;https://your-liferay-host/o/open_id_connect/backchannel_logout&lt;/code&gt;&lt;/pre&gt;





&lt;ol&gt;
	&lt;li&gt;Enable Back-Channel Logout support in your identity provider, if required.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;The exact steps for registering the endpoint vary by provider, but the concept remains the same regardless of whether you're using Keycloak, Microsoft Entra ID, Okta, or another standards-compliant implementation.&lt;/p&gt;





&lt;h2&gt;Security Considerations&lt;/h2&gt;





&lt;p&gt;At first glance, exposing a logout endpoint may seem concerning.&lt;/p&gt;





&lt;p&gt;What prevents someone from sending arbitrary HTTP POST requests and logging users out?&lt;/p&gt;





&lt;p&gt;The answer is the Logout Token.&lt;/p&gt;





&lt;p&gt;The OpenID Provider sends a cryptographically signed Logout Token that identifies the authenticated session being terminated.&lt;/p&gt;





&lt;p&gt;Liferay validates that token before taking any action.&lt;/p&gt;





&lt;p&gt;If validation fails, the logout request is rejected.&lt;/p&gt;





&lt;p&gt;In other words, the endpoint isn't a public &amp;quot;log out any user&amp;quot; API.&lt;/p&gt;





&lt;p&gt;It only accepts properly signed logout notifications from the configured OpenID Provider.&lt;/p&gt;





&lt;h2&gt;Operational Considerations&lt;/h2&gt;





&lt;p&gt;Although the implementation itself is straightforward, there are a few operational details worth remembering.&lt;/p&gt;





&lt;h3&gt;The OpenID Provider Must Reach Liferay&lt;/h3&gt;





&lt;p&gt;Back-Channel Logout is initiated by the OpenID Provider, not the user's browser.&lt;/p&gt;





&lt;p&gt;That means your identity provider must be able to reach Liferay's Back-Channel Logout endpoint.&lt;/p&gt;





&lt;p&gt;In practice, this means paying attention to reverse proxy configuration, firewall rules, DNS resolution, TLS certificates, and public endpoint accessibility.&lt;/p&gt;





&lt;p&gt;If the OpenID Provider cannot successfully deliver the Logout Token, Liferay has no way of knowing that the central authentication session has ended.&lt;/p&gt;





&lt;h3&gt;Browser Behavior&lt;/h3&gt;





&lt;p&gt;Because this is a server-to-server protocol, users won't necessarily notice anything immediately.&lt;/p&gt;





&lt;p&gt;If they're actively viewing a page inside Liferay, nothing visibly changes.&lt;/p&gt;





&lt;p&gt;The logout is detected the next time the browser communicates with the portal.&lt;/p&gt;





&lt;p&gt;This behavior is expected and is one of the defining characteristics of the Back-Channel Logout specification.&lt;/p&gt;





&lt;h3&gt;Clustered Liferay Environments&lt;/h3&gt;





&lt;p&gt;Back-Channel Logout does not introduce a special clustering requirement.&lt;/p&gt;





&lt;p&gt;If a Liferay environment is using OpenID Connect Single Sign-On, each node already participates in the same authentication model. Once the OpenID Provider ends the session and Liferay processes the Logout Token, subsequent attempts to use that authenticated session should fail regardless of which cluster node receives the request.&lt;/p&gt;





&lt;p&gt;The important operational concern is therefore not session replication between Liferay nodes. It is ensuring that the OpenID Provider can reach Liferay's Back-Channel Logout endpoint and that the Logout Token can be validated successfully.&lt;/p&gt;





&lt;h2&gt;What Isn't Supported Yet?&lt;/h2&gt;





&lt;p&gt;Another OpenID Connect specification is &lt;strong&gt;RP-Initiated Logout&lt;/strong&gt;.&lt;/p&gt;





&lt;p&gt;Instead of the identity provider initiating logout, the relying party starts the process.&lt;/p&gt;





&lt;p&gt;For example, imagine a user clicking &lt;strong&gt;Log Out&lt;/strong&gt; inside Liferay.&lt;/p&gt;





&lt;p&gt;Rather than only invalidating the local portal session, Liferay could also request that the OpenID Provider terminate the user's central single sign-on session.&lt;/p&gt;





&lt;p&gt;That, in turn, would allow the identity provider to notify every participating application.&lt;/p&gt;





&lt;p&gt;The flow would look something like this.&lt;/p&gt;





&lt;p&gt;&lt;img data-fileentryid="126438525" src="https://liferay.dev/documents/portlet_file_entry/14/slo-03.png/a6f78979-d3de-5275-91fc-8cf6da657ca9"&gt;&lt;/p&gt;





&lt;p&gt;Support for RP-Initiated Logout is planned for a future Liferay release, although, as with any roadmap item, plans may change.&lt;/p&gt;





&lt;p&gt;When both specifications are available, they complement one another rather than replace one another.&lt;/p&gt;





&lt;p&gt;Back-Channel Logout allows the OpenID Provider to terminate application sessions.&lt;/p&gt;





&lt;p&gt;RP-Initiated Logout allows an application to terminate the user's central identity provider session.&lt;/p&gt;





&lt;p&gt;Together they provide a more complete single logout experience.&lt;/p&gt;





&lt;h2&gt;Final Thoughts&lt;/h2&gt;





&lt;p&gt;The important takeaway is that saying &lt;strong&gt;&amp;quot;Liferay doesn't support OIDC Single Logout&amp;quot;&lt;/strong&gt; is no longer accurate.&lt;/p&gt;





&lt;p&gt;Beginning with &lt;strong&gt;Liferay DXP 2026.Q1&lt;/strong&gt;, Liferay supports the OpenID Connect &lt;strong&gt;Back-Channel Logout&lt;/strong&gt; specification, allowing standards-compliant OpenID Providers to securely terminate authenticated portal sessions without relying on browser redirects or provider-specific integrations.&lt;/p&gt;





&lt;p&gt;If your organization already uses OpenID Connect for Single Sign-On, enabling Back-Channel Logout helps ensure that when the user's central authentication session ends, their Liferay session ends as well. That's an important improvement for both security and operational consistency across multiple applications.&lt;/p&gt;





&lt;p&gt;Support for RP-Initiated Logout would make the logout story even more complete, but the existing Back-Channel Logout implementation already addresses one of the most important challenges in federated authentication: keeping application sessions synchronized with the identity provider.&lt;/p&gt;





&lt;p&gt;As more organizations adopt centralized identity platforms, standards-based logout becomes just as important as standards-based login. It's good to see Liferay continuing to build on the OpenID Connect specifications in a way that improves interoperability while remaining provider agnostic.&lt;/p&gt;





&lt;p&gt;For more information, check out &lt;a
    href="https://learn.liferay.com/w/dxp/security-and-administration/security/configuring-sso/using-openid-connect#technical-standards-and-specifications" rel="noopener noreferrer"&gt;Liferay's documentation for OIDC&lt;/a&gt;.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2026-08-05T16:26:00Z</dc:date>
  </entry>
  <entry>
    <title>Bringing Liferay to Cross-platform Development</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126437387" />
    <author>
      <name>Nestor Ledon</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126437387</id>
    <updated>2026-08-05T14:11:00Z</updated>
    <published>2026-08-05T13:37:00Z</published>
    <summary type="html">&lt;p&gt;Liferay already provides a mature platform for content, permissions, users, sites, workflows, and headless APIs. What has been missing is a practical way to use that platform as the backend for a modern application.&lt;/p&gt;





&lt;p&gt;Liferay previously offered dedicated mobile libraries, but those tools were ultimately deprecated or removed in favor of Headless Delivery. That was probably the right architectural move, even if retiring the mobile SDK without replacing the developer experience left a pretty obvious gap. API-first competitors such as Contentful have already shown why separating the backend from the presentation layer makes sense.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;KDXP&lt;/strong&gt; is intended to fill that gap: not by bringing back another platform-specific mobile SDK, but by providing a Kotlin &lt;strong&gt;Multiplatform framework&lt;/strong&gt; over Liferay’s headless APIs for Android, iOS, desktop, and web.&lt;/p&gt;





&lt;p&gt;The gap is obvious: searching YouTube for &lt;em&gt;&lt;strong&gt;“Liferay Kotlin”&lt;/strong&gt;&lt;/em&gt; currently returns the KDXP setup demo on the first page. Searching for &lt;strong&gt;&lt;em&gt;“Liferay multi-platform”&lt;/em&gt;&lt;/strong&gt; does the same.&lt;/p&gt;





&lt;p&gt;Those results do not mean KDXP is finished. They do suggest that developers looking to combine Liferay with modern cross-platform development currently have very few options.&lt;/p&gt;





&lt;p&gt;The first setup demo walks through connecting KDXP to a local Liferay installation, configuring OAuth, and creating an application-backed site.&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Watch the KDXP Liferay Setup demo:&lt;/strong&gt;&lt;br&gt;
&lt;a
    href="https://youtu.be/mlPIv3XQ-GY?si=aSFYDsVCN0vhPTLd" rel="noopener noreferrer"&gt;https://youtu.be/mlPIv3XQ-GY?si=aSFYDsVCN0vhPTLd&lt;/a&gt;&lt;/p&gt;





&lt;p&gt;This is the first step toward giving Liferay developers a shared application layer across Android, iOS, desktop, and web.&lt;/p&gt;





&lt;p&gt;&lt;em&gt;YouTube results captured August 4, 2026.&lt;/em&gt;&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Connect with me on LinkedIn:&lt;/strong&gt;&lt;br&gt;
&lt;a
    data-end="1236" data-start="1196"
    href="https://www.linkedin.com/in/nestorledon/" rel="noopener" target="_new"&gt;https://www.linkedin.com/in/nestorledon/&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Nestor Ledon</dc:creator>
    <dc:date>2026-08-05T13:37:00Z</dc:date>
  </entry>
  <entry>
    <title>No More Rebuild-and-Redeploy: Instant Hot Reload for Liferay React Client Extensions</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126396924" />
    <author>
      <name>Ankit Hadiyal</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126396924</id>
    <updated>2026-08-02T23:42:05Z</updated>
    <published>2026-08-01T10:10:00Z</published>
    <summary type="html">&lt;h2&gt;The Rebuild-and-Redeploy Loop Every Client Extension Developer Knows&lt;/h2&gt;





&lt;p data-sourcepos="10:1-10:96;370-465"&gt;If you've built a React-based client extension (CX) for Liferay DXP, you know this rhythm well.&lt;/p&gt;





&lt;p data-sourcepos="12:1-12:464;467-930"&gt;You tweak a component - adjust some padding, change a label, wire up a new prop. You save the file, switch to your terminal, and kick off a build. Gradle picks it up, packages it into a client extension bundle, and pushes it to your running Liferay instance. Twenty or thirty seconds later, sometimes more depending on your machine and workspace size, it's finally deployed. You switch back to the browser, hard-refresh, and check whether the padding looks right.&lt;/p&gt;





&lt;p data-sourcepos="14:1-14:31;932-962"&gt;It didn't. So you do it again.&lt;/p&gt;





&lt;p data-sourcepos="16:1-16:197;964-1160"&gt;Multiply that by the dozens of small adjustments that go into any real UI, and the wasted time adds up fast. An afternoon of front-end polish can turn into an afternoon of watching a progress bar.&lt;/p&gt;





&lt;p data-sourcepos="18:1-18:494;1162-1655"&gt;This isn't really a Liferay problem - it's what frontend development looked like everywhere before tools like Vite made Hot Module Replacement (HMR) the default. Most React developers left that world behind years ago. Client extension developers are still living in it by default, because a client extension isn't a standalone web app you serve yourself. It's a bundle Liferay loads from a URL declared in &lt;code&gt;client-extension.yaml&lt;/code&gt;, and that bundle only changes when you rebuild and redeploy it.&lt;/p&gt;





&lt;h2&gt;Liferay Already Gives You the Fix — Here's Where It Stops&lt;/h2&gt;





&lt;p data-sourcepos="22:1-22:386;1724-2109"&gt;To be fair, this isn't an unsolved problem. Liferay's own frontend team has documented a way to skip the redeploy step, using a file called &lt;code&gt;client-extension.dev.yaml&lt;/code&gt;. Instead of pointing your custom element's entry at a bundled production file, you point it at your local Vite dev -  server  &lt;code&gt;http://localhost:5173&lt;/code&gt;, say , so Liferay loads the source straight from Vite while you work.&lt;/p&gt;





&lt;p data-sourcepos="24:1-24:167;2111-2277"&gt;That alone is worth doing: no more waiting on Gradle for every change. But if you've tried it, you've probably noticed it doesn't fully deliver on the promise of HMR.&lt;/p&gt;





&lt;p data-sourcepos="26:1-26:320;2279-2598"&gt;For plain JS or CSS, it behaves close to what you'd expect. For a React custom element, saving a file still triggers a full page reload instead of an in-place swap of just the component you changed. You lose whatever state you were looking at, and you don't get the sub-second feedback loop Vite is known for elsewhere.&lt;/p&gt;





&lt;p data-sourcepos="28:1-28:388;2600-2987"&gt;Getting genuine component-level HMR — the kind where only the changed component re-renders and state survives means adding Vite's client script and a small React Refresh runtime shim as their own dev-only entries, loaded in a specific order, on top of the dev.yaml file. It works, but it's fiddly, and it's boilerplate you end up rewriting for every client extension in your workspace.&lt;/p&gt;





&lt;p data-sourcepos="30:1-30:83;2989-3071"&gt;Two other things tend to bite people once a project grows past a single extension:&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Port collisions.&lt;/strong&gt; Every client extension wants its own Vite dev server. With five, ten, or twenty of them in the same workspace not unusual on a larger DXP project - you end up manually tracking which port belongs to which project so they don't collide.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Imports that only make sense at runtime.&lt;/strong&gt; Some packages your custom element imports things like &lt;code&gt;@liferay/oauth2-provider-web/client&lt;/code&gt;, or shared &lt;code&gt;@clayui&lt;/code&gt; components — aren't meant to live in your local &lt;code&gt;node_modules&lt;/code&gt;. In production, Liferay serves them once from a shared registry so every client extension on the page reuses the same instance instead of shipping its own copy. Vite's dev server doesn't know that convention exists. The moment your code imports one of those packages, Vite either can't resolve it or bundles a second, disconnected copy of something that's supposed to be a singleton.&lt;/li&gt;
&lt;/ul&gt;





&lt;p data-sourcepos="35:1-35:226;3944-4169"&gt;None of this is exotic. It's documented, and any experienced CX developer can wire it up by hand. The problem is that &amp;quot;by hand&amp;quot; means redoing a multi-step setup, correctly, for every extension, on every project, indefinitely.&lt;/p&gt;





&lt;ul&gt;
	&lt;li&gt;
	&lt;h2&gt;Introducing &lt;code&gt;liferay-cx-hmr-setup&lt;/code&gt;&lt;/h2&gt;
	&lt;/li&gt;
&lt;/ul&gt;





&lt;p data-sourcepos="39:1-39:307;4210-4516"&gt;We built &lt;code&gt;liferay-cx-hmr-setup&lt;/code&gt;, an npm CLI tool, to take care of all of that in one pass. Run it once against your Liferay workspace, and it configures instant, component-level HMR for every React client extension it finds — no hand-written YAML, no manually authored refresh scripts, no port spreadsheet.&lt;/p&gt;





&lt;p&gt;bash&lt;/p&gt;





&lt;div class="overflow-auto portlet-msg-info"&gt;npx liferay-cx-hmr-setup&lt;/div&gt;





&lt;p data-sourcepos="45:1-45:186;4556-4741"&gt;From that point on, your regular &lt;code&gt;npm run dev&lt;/code&gt; behaves the way you'd expect from any modern React project: save a file, see the change on the actual Liferay page in well under a second.&lt;/p&gt;





&lt;h2&gt;How It Works, In Plain Words&lt;/h2&gt;





&lt;p data-sourcepos="49:1-49:42;4776-4817"&gt;Here's what happens when you run the CLI:&lt;/p&gt;





&lt;ol&gt;
	&lt;li&gt;It scans your Liferay workspace and finds every client extension built with Vite.&lt;/li&gt;
	&lt;li&gt;For each one, it checks which local ports are already claimed by neighboring extensions and assigns the next free one.&lt;/li&gt;
	&lt;li&gt;It generates or updates that extension's &lt;code&gt;client-extension.dev.yaml&lt;/code&gt;, pointing its entries at &lt;code&gt;localhost&lt;/code&gt; on the assigned port.&lt;/li&gt;
	&lt;li&gt;It adds a small dev-only preamble script and registers it to load ahead of your main entry point, so Vite's client and the React Refresh runtime are ready before your component code runs.&lt;/li&gt;
	&lt;li&gt;It updates &lt;code&gt;vite.config&lt;/code&gt; for that project: turning on CORS so the portal's origin can load it, and registering a plugin that recognizes Liferay-provided imports and leaves them for the browser to resolve at runtime instead of bundling them.&lt;/li&gt;
&lt;/ol&gt;





&lt;p data-sourcepos="57:1-57:241;5593-5833"&gt;None of this is a new mechanism — it's the same dev.yaml and Vite dev server approach Liferay already supports. The tool just handles the repetitive, error-prone parts of setting it up so you're not redoing them by hand for every extension.&lt;/p&gt;





&lt;h2&gt;What Gets Set Up Automatically&lt;/h2&gt;





&lt;h3&gt;Automatic Port Allocation Across Your Whole Workspace&lt;/h3&gt;





&lt;p data-sourcepos="63:1-63:265;5929-6193"&gt;On a workspace with a couple of client extensions, hand-assigning ports isn't a big deal. On one with fifteen or twenty, it becomes its own small chore, and it's easy to introduce a collision without noticing until two dev servers refuse to start at the same time.&lt;/p&gt;





&lt;p data-sourcepos="65:1-65:435;6195-6629"&gt;The CLI handles this by checking every neighboring client extension project, reading which ports are already taken, and picking the next open one: &lt;code&gt;5173&lt;/code&gt;, &lt;code&gt;5174&lt;/code&gt;, &lt;code&gt;5175&lt;/code&gt;, and so on. That port gets written into both the extension's Vite config and its &lt;code&gt;client-extension.dev.yaml&lt;/code&gt;, so the two never drift out of sync. Scaffold a new client extension later, run the CLI again, and it slots in without disturbing anything already running.&lt;/p&gt;





&lt;h3&gt;Letting Liferay's Runtime Packages Do Their Job&lt;/h3&gt;





&lt;p data-sourcepos="69:1-69:266;6684-6949"&gt;Rather than making you manually mark specific imports as external in &lt;code&gt;vite.config&lt;/code&gt;, the tool ships a small Vite plugin that recognizes packages Liferay provides at runtime and leaves those import statements alone instead of trying to resolve or bundle them locally.&lt;/p&gt;





&lt;p data-sourcepos="71:1-71:416;6951-7366"&gt;That matters because these packages are either missing from your local &lt;code&gt;node_modules&lt;/code&gt; entirely, or present only as a type-checking dependency, not something meant to be duplicated inside your bundle. With the plugin in place, your dev environment resolves those imports the same way production does, against whatever Liferay has published for the page, instead of a second, disconnected copy Vite tried to guess at.&lt;/p&gt;





&lt;h3&gt;Zero-Config Wiring: dev.yaml, the Refresh Preamble, and CORS&lt;/h3&gt;





&lt;p data-sourcepos="75:1-75:541;7434-7974"&gt;This is the part that used to take the most trial and error. The CLI generates &lt;code&gt;client-extension.dev.yaml&lt;/code&gt; for the extension, along with the small refresh script it points to, and makes sure the refresh entry loads ahead of the client entry — order matters here, and it's an easy detail to get backwards by hand. It also turns on the CORS headers your Vite dev server needs so the browser doesn't block requests coming from the portal's origin, and links the externals plugin from the previous section into your &lt;code&gt;vite.config&lt;/code&gt; automatically.&lt;/p&gt;





&lt;p data-sourcepos="77:1-77:197;7976-8172"&gt;Run the CLI again after scaffolding a new client extension, and all of this gets set up for the new project too. You're not maintaining a growing pile of hand-edited config as the workspace grows.&lt;/p&gt;





&lt;h2&gt;Getting Started&lt;/h2&gt;





&lt;p data-sourcepos="81:1-81:220;8194-8413"&gt;You'll need a React client extension project that already uses Vite as its bundler (the standard approach since Create React App was deprecated), Node and npm installed, and a Liferay DXP instance you can reach locally.&lt;/p&gt;





&lt;h3&gt;1. Run the CLI&lt;/h3&gt;





&lt;p&gt;bash&lt;/p&gt;





&lt;div class="overflow-auto portlet-msg-info"&gt;npx liferay-cx-hmr-setup&lt;/div&gt;





&lt;p data-sourcepos="89:1-89:105;8473-8577"&gt;This scans your workspace and configures every Vite-based client extension it finds, as described above.&lt;/p&gt;





&lt;h3&gt;2. Deploy the Dev Manifest&lt;/h3&gt;





&lt;p&gt;bash&lt;/p&gt;





&lt;div class="overflow-auto portlet-msg-info"&gt;./gradlew :client-extensions:my-cx:deployDev&lt;/div&gt;





&lt;p data-sourcepos="97:1-97:250;8669-8918"&gt;This tells Liferay, for this extension, to load whatever's being served from your local Vite dev server instead of the last built bundle. You only need to re-run this if the extension's entries or assigned port change, not for ordinary code changes.&lt;/p&gt;





&lt;h3&gt;3. Start Coding&lt;/h3&gt;





&lt;p&gt;bash&lt;/p&gt;





&lt;div class="overflow-auto portlet-msg-info"&gt;npm run dev&lt;/div&gt;





&lt;p data-sourcepos="105:1-105:252;8966-9217"&gt;Vite boots on the port assigned to that extension. Open the page where the extension is placed, keep it next to your editor, and change something small — a color, a string of text. It updates before you've moved your cursor back to the browser window.&lt;/p&gt;





&lt;p data-sourcepos="107:1-107:143;9219-9361"&gt;Component edits swap in place with state preserved wherever React Refresh can manage it. CSS updates apply immediately, with no reload at all.&lt;/p&gt;





&lt;h2&gt;What This Changes About Your Day-to-Day&lt;/h2&gt;





&lt;p data-sourcepos="111:1-111:340;9407-9746"&gt;The time savings compound quickly on any project with real UI work. Instead of a 20–30 second round trip for every change, you get the sub-second feedback loop of a standalone React app, which matters most exactly when you need it most: while you're iterating on layout, spacing, and visual details that take several attempts to get right.&lt;/p&gt;





&lt;p data-sourcepos="113:1-113:211;9748-9958"&gt;It also removes friction when onboarding someone new onto a CX-heavy codebase. Instead of walking them through hand-writing dev YAML and refresh scripts for their first extension, you point them at one command.&lt;/p&gt;





&lt;p data-sourcepos="115:1-115:337;9960-10296"&gt;Importantly, none of this touches your production path. &lt;code&gt;client-extension.dev.yaml&lt;/code&gt;, the preamble script, and your Vite dev config are all dev-only additions. Your actual &lt;code&gt;client-extension.yaml&lt;/code&gt; and the Gradle build your CI/CD runs stay exactly as they were. Turning this on for local development carries no risk to what actually ships.&lt;/p&gt;





&lt;h2&gt;Give It a Try&lt;/h2&gt;





&lt;p data-sourcepos="119:1-119:277;10316-10592"&gt;&lt;code&gt;liferay-cx-hmr-setup&lt;/code&gt; is a new tool, available now on npm, built to solve the exact friction we kept running into on our own client extension-heavy projects. If you try it and hit a rough edge, or think of a feature that would make it more useful, we'd like to hear about it.&lt;/p&gt;





&lt;p data-sourcepos="121:1-121:119;10594-10712"&gt;Every report and suggestion helps make this more useful for the next team building React client extensions on Liferay.&lt;/p&gt;</summary>
    <dc:creator>Ankit Hadiyal</dc:creator>
    <dc:date>2026-08-01T10:10:00Z</dc:date>
  </entry>
  <entry>
    <title>Service Builder Compatibility Matrix</title>
    <link rel="alternate" href="/c/blogs/rss&amp;entryId=126389560" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>/c/blogs/rss&amp;entryId=126389560</id>
    <updated>2026-07-31T18:51:50Z</updated>
    <published>2026-07-30T17:54:00Z</published>
    <summary type="html">&lt;h2&gt;Why This Matters&lt;/h2&gt;





&lt;p&gt;When you update Blade CLI and create a new Liferay Workspace, the generated workspace normally uses the latest Liferay Workspace Gradle plugin. That plugin selects versions for a number of supporting build tools, including the Service Builder plugin.&lt;/p&gt;





&lt;p&gt;For new projects targeting the latest Liferay release, this is usually what you want.&lt;/p&gt;





&lt;p&gt;The detail worth paying attention to is that Service Builder generates Java code against the service APIs and conventions of a specific Liferay release line. As Liferay evolves from one quarterly release to another, such as from &lt;code&gt;2026.Q1&lt;/code&gt; to &lt;code&gt;2026.Q2&lt;/code&gt;, the service tier can change.&lt;/p&gt;





&lt;p&gt;The latest Service Builder plugin knows how to generate code for the latest platform version, but that does not always mean it is the right choice for an older target platform.&lt;/p&gt;





&lt;p&gt;For example, if your workspace is targeting &lt;code&gt;2024.Q1&lt;/code&gt;, using the newest Service Builder plugin may generate service code that does not line up with the APIs available in that Liferay version.&lt;/p&gt;





&lt;p&gt;The important point is simple:&lt;/p&gt;





&lt;p&gt;&lt;strong&gt;Your Service Builder plugin version should match the Liferay DXP version you are targeting in your workspace.&lt;/strong&gt;&lt;/p&gt;





&lt;h2&gt;The Compatibility Matrix&lt;/h2&gt;





&lt;p&gt;The Developer Experience team at Liferay has put together the following compatibility chart. Use it to select the Service Builder plugin version that corresponds to the Liferay quarterly release configured in your workspace.&lt;/p&gt;





&lt;table border="1" cellpadding="5" cellspacing="5"&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;Liferay Quarterly Version&lt;/th&gt;
			&lt;th&gt;Service Builder Version&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2023.Q3&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.463&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2023.Q4&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.470&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2024.Q1&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.478&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2024.Q2&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.485&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2024.Q3&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.488&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2024.Q4&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.490&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2025.Q1&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.496&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2025.Q2&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.503&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2025.Q3&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.510&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2025.Q4&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.513&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2026.Q1&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.514&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;2026.Q2&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.532&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt;The Service Builder version listed for a quarterly release applies to the patch releases within that quarterly release line.&lt;/p&gt;





&lt;h2&gt;How To Choose The Right Version&lt;/h2&gt;





&lt;p&gt;Start with the Liferay version your workspace is targeting.&lt;/p&gt;





&lt;p&gt;In a Liferay Workspace, this is typically configured in &lt;code&gt;gradle.properties&lt;/code&gt; using the &lt;code&gt;liferay.workspace.product&lt;/code&gt; property:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;liferay.workspace.product=dxp-2024.q1.10-lts&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;The quarterly release portion of that value is the part you need to match against the table.&lt;/p&gt;





&lt;table&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;Workspace Target Platform&lt;/th&gt;
			&lt;th&gt;Quarterly Release&lt;/th&gt;
			&lt;th&gt;Service Builder Version&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;dxp-2024.q1.10-lts&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;2024.Q1&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.478&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;dxp-2026.q1.8-lts&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;2026.Q1&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.514&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;code&gt;dxp-2026.q2.0&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;2026.Q2&lt;/code&gt;&lt;/td&gt;
			&lt;td&gt;&lt;code&gt;1.0.532&lt;/code&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;





&lt;p&gt;Once you know the matching Service Builder version, pin it in the same &lt;code&gt;gradle.properties&lt;/code&gt; file:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;com.liferay.portal.tools.service.builder.version=1.0.478&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;So a workspace targeting &lt;code&gt;2024.Q1&lt;/code&gt; might include:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;liferay.workspace.product=dxp-2024.q1.10-lts
com.liferay.portal.tools.service.builder.version=1.0.478&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;After changing the property, rebuild your Service Builder modules as usual:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;blade gw buildService
blade gw jar&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;Or, if you prefer compiling directly:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;blade gw buildService
blade gw compileJava&lt;/code&gt;&lt;/pre&gt;





&lt;div class="overflow-auto portlet-msg-alert"&gt;&lt;strong&gt;NOTE: &lt;/strong&gt;If you have previously generated the service classes but didn't specify the right version of the SB plugin, you should clear out all of the generated code. The &lt;code&gt;buildService&lt;/code&gt; task does not see a change in plugin version as a reason to regenerate a class, only a change to &lt;code&gt;service.xml&lt;/code&gt; or. one of the impl classes will do that, and only targeted to those classes that need to be updated as a result of the change. Purging all of the previously generated classes will ensure that SB generates all of the right classes for your version of Liferay DXP.&lt;/div&gt;





&lt;h2&gt;When To Recheck The Matrix&lt;/h2&gt;





&lt;p&gt;You should recheck this matrix whenever you change your workspace target platform.&lt;/p&gt;





&lt;p&gt;For example, if you move from:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;liferay.workspace.product=dxp-2024.q1.10-lts&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;to:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;liferay.workspace.product=dxp-2026.q2.0&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;then you should also update:&lt;/p&gt;





&lt;pre&gt;
&lt;code&gt;com.liferay.portal.tools.service.builder.version=1.0.532&lt;/code&gt;&lt;/pre&gt;





&lt;p&gt;The target platform and Service Builder version should move together. Treat them as related build configuration, not as independent settings.&lt;/p&gt;





&lt;h2&gt;Practical Workflow&lt;/h2&gt;





&lt;ol&gt;
	&lt;li&gt;Set or update &lt;code&gt;liferay.workspace.product&lt;/code&gt;.&lt;/li&gt;
	&lt;li&gt;Find the matching quarterly release in the compatibility matrix.&lt;/li&gt;
	&lt;li&gt;Pin &lt;code&gt;com.liferay.portal.tools.service.builder.version&lt;/code&gt; to the matching version.&lt;/li&gt;
	&lt;li&gt;Run &lt;code&gt;buildService&lt;/code&gt;.&lt;/li&gt;
	&lt;li&gt;Compile the module.&lt;/li&gt;
	&lt;li&gt;Commit both the generated service code and the workspace configuration change together.&lt;/li&gt;
&lt;/ol&gt;





&lt;p&gt;That last point matters. If generated Service Builder code changes because the plugin version changed, future maintainers need to see the configuration change that explains why the generated code changed.&lt;/p&gt;





&lt;h2&gt;Looking Ahead&lt;/h2&gt;





&lt;p&gt;The Liferay Dev Tools team is working on ways to make this selection automatic in the future. A future version of Blade CLI, the Liferay Workspace plugin, or both may be able to select the appropriate Service Builder version based on the configured target platform.&lt;/p&gt;





&lt;p&gt;Until then, this matrix gives you a practical way to avoid generating service code that does not align with your Liferay DXP version.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2026-07-30T17:54:00Z</dc:date>
  </entry>
</feed>
