Prompt a guest user to Office 365 login when attempting to access a protected page resource
Rafael Regner
更新
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