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

問題

  • 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

追加情報

この記事は役に立ちましたか?
1人中1人がこの記事が役に立ったと言っています