Issue
- We have configured Single Sign-On (SSO) with OpenID Connect using Office 365.
-
We set the portal property
auth.login.prompt.enabled
totrue
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
- Not Found page seen instead of Login Prompt when logged out and navigating to private pages
- LPS-141291 - Migrate portal property "auth.login.prompt.enabled" to site scoped configuration
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar