Legacy Knowledge Base
Published Sep. 10, 2025

Custom login page instead of default sign-in portlet

Written By

Kanchan Bisht

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

  • Need to have a custom login page instead of a default sign-in portlet when a user tries to access a private page without being logged in.
    • The private and public pages are not having Guest user’s VIEW permission.  

Environment

  • Liferay DXP 7.4

Resolution

  • The following are the steps that would help to achieve the requirement here :
    1. Set the following properties in the portal-ext.properties file: "auth.login.site.url=/sign-in", "auth.login.url=/sign-in"
    2. Started the portal.
    3. Removed the release feature flag of the private pages at “Control Panel > System Settings > OTHER > Release Feature Flags“ with the “Disabled Features” dropdown to “Disable Private Pages”.
    4. Changed the default site’s /guest Friendly URL” (at “Menu > Configuration > Site Settings > Site Configuration > Site URL”) to /abc as per the use case. 
    5. Created a /sign-inpublic page with a Sign-in widget on that.
    6. Created a /restrictedpublic page by removing the Guest user’s VIEW permission.
    7. Created a /private-homeprivate page.
    8. Also, enable the 'Prompt Enabled' option here [User-is-redirected-to-the-404-page-instead-of-the-login-page-when-the-session-expires]
  • Now, to test the above steps for this use case:
    • Hit both the pages created at the 6th and the 7th steps by the Guest user should lead to the /sign-in public page.

      e.g., the URL pattern would something be like this: 

      Restricted public page: localhost:8080/web/abc/restricted-public-page

      Private page: localhost:8080/group/abc/private-home-page

  1.  

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base