How to showcase gated content experiences in Edge Delivery Services and Document Authoring

This demo video showcases how to demonstrate gated content experiences in Edge Delivery Services and Document Authoring

Problem

  1. End users: Logged-in users see premium content; anonymous users see public content only.
  2. Authors: Need an easy, intuitive way to author gated content in DA.
  3. Exposure risk: If protection is only client-side, Premium content can be scraped or read by inspecting HTML markup

Solution

Relying on the browser alone to “hide” premium content is not enough for real enforcement—the delivery path must respect authentication and serve appropriate markup for each audience.

A practical approach combines edge-side logic (close to the user, with the help of CDN edge workers) with author-friendly controls in the authoring experience. This is already an established pattern when working with AEM Edge Delivery Services. You can read more about it here

For Content Authors

Authoring Flow

  1. Create a page

  2. Set page metadata gated = true to mark the page has premium content

  3. For any section

    • add section property view=logged-in or view=logged-out to reflect the audience of the content
    • If you don't add the view property, section is considered as public
  4. For any block

    • Add variant class as logged-in or logged-out to reflect the audience of the content
    • If you don't add logged-in or logged-out class variant, the block is considered as public
  5. Once ready, Preview the page

  6. Use custom DA authoring controls to toggle between anonymous and authenticated content before publishing

  7. Once ready, Publish your page

For End Users

Delivery Flow

  1. Navigate to sample gated page : https://demo.bbird.live/already-investing
  2. Observe you should be seeing anonymous/public content for the page
  3. Login in your site
  4. Observe you should be seeing premium content for the page along with any specific public content as authored