Legacy Knowledge Base
Published Jun. 30, 2025

Captcha authentication via Headless API

Written By

Odon Barta

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • We have developed a Liferay fragment to collect user input via a custom-designed HTML form. This fragment interacts with custom Liferay objects through a Headless API using JS
  • We have created a new role with the necessary permissions to access the Headless API endpoints for publicly required operations
  • However, we are facing a challenge in implementing CAPTCHA validation for this form to enhance security and prevent automated submissions
  • We would like to:
    • Have an option to integrate CAPTCHA validation into our Liferay fragment
    • Implement a CAPTCHA mechanism within the Liferay fragment to verify the form submissions
    • Ensure that the CAPTCHA verification process seamlessly integrates with the Headless API calls made from the fragment

Environment

  • Liferay DXP 7.4

Resolution

Did this article resolve your issue ?

Legacy Knowledge Base