legacy-knowledge-base
公開されました Jun. 30, 2025

保護されたページリソースにアクセスしようとすると、ゲストユーザーに Office 365 ログインを促す

written-by

Rafael Regner

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

learn-legacy-article-disclaimer-text

問題

  • Office 365を使用してOpenID Connectでシングルサインオン(SSO)を構成しました。
  • ポータルのプロパティ auth.login.prompt.enabledtrue に設定し、ポータルの保護されたページ・リソースにアクセスしようとすると、ゲスト・ユーザにログインを促します。
  • しかし、現在の動作はLiferayのデフォルトのログインページを開くようになっています。
  • ゲストユーザーをOffice 365のログイン画面にリダイレクトさせたい。

Environment

  • Liferay DXP 7.3

解決策

  • portal-ext.properties ファイルの以下のプロパティを適切な値に設定してください:
    # 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
  • 以下に例を示します。
    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

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base