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

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

Este artigo foi útil?
Utilizadores que acharam útil: 1 de 1