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

OAuth2.0とKerberos

written-by

Dávid Hegedüs

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

問題

  • SSOの設定後、OAuth 2.0の問題が発生し、 /o/oauth2/token の呼び出しが "401 Unauthorized error" で失敗する問題に遭遇することがあります。
  • また、Apacheを使用している場合、以下のように表示されることがあります:
    "POST /o/oauth2/token HTTP/1.1" 401 381 "-" "Apache-HttpClient/4.5.11 (Java/11.0.10)"

Environment

  • Liferay DXP 7.2

解決策

  • 使用される API URL は Apache によって除外されるべきで、これを解決するために別の <Location> ディレクティブか RegEx で <LocationMatch> を使用します。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base