legacy-knowledge-base
公開されました Jul. 2, 2025

[サインイン] ボタンをクリックした後に OpenID Connect ページにリダイレクトする方法

written-by

Gábor Komáromi

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

問題

  • ユーザーが OpenID Connect 経由でログインするための手順は非常に長くなります。 彼らはしないといけない:
    1. ホームページの「サインイン」ボタンをクリック
    2. サインイン ポートレットが表示されます
    3. 「OpenID Connect」リンクをクリックします
    4. OpenID ID プロバイダーの選択
    5. ID プロバイダーのサインイン ページにリダイレクトされる前に、サインイン ポートレットの [サインイン] ボタンをクリックします。
  • このプロセスを短縮して、サインイン ボタンを最初にクリックした後に ID プロバイダーのサインイン ページに移動するにはどうすればよいでしょうか?

Environment

  • Liferay DXP 7.2
  • OpenID Connect プロトコル

解決策

  • ユーザーが OpenID Connect プロバイダーに送信される前に必要なプロセスに含まれるステップを最小限に抑えることができるデフォルトのオプションはありません。
  • ただし、portal-ext.properties を変更することによる回避策があります。
    Enter a URL that will be used to login portal users whenever needed. By default, the portal's login page is used.

    Env: LIFERAY_AUTH_PERIOD_LOGIN_PERIOD_URL

    Examples:
    auth.login.url=/web/guest/home
    終了:
    Enter a URL that will be used to login portal users whenever needed. By default, the portal's login page is used.

    Env: LIFERAY_AUTH_PERIOD_LOGIN_PERIOD_URL

    Examples:
    auth.login.url=/home/-/login/openid_connect_request?p_p_state=maximized&_com_liferay_login_web_portlet_LoginPortlet_saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_redirect=/&_com_liferay_login_web_portlet_LoginPortlet_OPEN_ID_CONNECT_PROVIDER_NAME=IAM
    IAM 、システム設定 > SSO > OpenID Connect プロバイダーの下に入力された プロバイダー名 を表します。
  • これにより、[サインイン] をクリックすると、ユーザーは ID プロバイダーのサインイン ページに自動的にリダイレクトされます。
did-this-article-resolve-your-issue

legacy-knowledge-base