Legacy Knowledge Base
Published Jun. 30, 2025

Prompt a guest user to Office 365 login when attempting to access a protected page resource

Written By

Rafael Regner

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Issue

  • We have configured Single Sign-On (SSO) with OpenID Connect using Office 365.
  • We set the portal property auth.login.prompt.enabled to true to prompt a guest user to login when attempting to access a protected page resource in the portal.
  • However, the behavior now is to open Liferay default login page.
  • We would like the guest user to be redirected to the Office 365 login screen.

Environment

  • Liferay DXP 7.3

Resolution

  • Please set the following property in the portal-ext.properties file to the appropriate value:
    # Enter a friendly URL of a page that will be used to login portal users
    # whenever the user is navigating a site and authentication is needed. 
    # By default, the portal's login page or the URL set in the property # "auth.login.url" is used. # # Env: LIFERAY_AUTH_PERIOD_LOGIN_PERIOD_SITE_PERIOD_URL # auth.login.site.url=/login
  • For example:
    auth.login.site.url=/login/-/login/openid_connect_request?p_p_state=maximized&_com_liferay_login_web_portlet_LoginPortlet_saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_redirect=/group/intranet/home&_com_liferay_login_web_portlet_LoginPortlet_OPEN_ID_CONNECT_PROVIDER_NAME=MPSP-Office-365

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base