legacy-knowledge-base
公開されました Sep. 10, 2025

JSONWSのBasic Authを無効化したい。

written-by

Dia Seung

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

問題

  • LiferayのJSONWS(JSONウェブサービス)のBasic Authを無効にして、特定のjsonwsメソッド(例: expandovalue)にのみOAuthを使用するようにしたい。

Environment

  • DXP 7.4

解決策

  • コントロールパネル > システム設定 > API認証 > Basic Authヘッダー /api/*,/xmlrpc* 設定エントリーを編集することにより、Basic Authを完全に無効にしたり、 /api/* を含むURL一覧から削除することが可能です。
    basic_auth.png

  • 特定のexpandovalueメソッドのみBasic Authを無効にするには、「URL Excludes」に /api/jsonws/expandovalue/* を追加してください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base