Legacy Knowledge Base
公開されました Jun. 30, 2025

Liferay は、完全に署名された SAML レスポンスのみを受け入れる。 この条件をオフにすることはできますか?

Written By

Peter Nyiro

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • セキュリティの観点から、レスポンスに署名することはベストプラクティスである。 しかし、他のアプリではこの要件をオフにすることができる。
  • Liferayがデフォルトでレスポンスの完全な署名を要求していることは理解できますが、これを何らかの方法でオフにすることはできますか?

Environment

  • DXP 7.3+

解決策

  • SAML標準は、ブラウザを使用するSAMLバインディングでは署名検証を必須(MUST)としている。 Liferay は SSO に HTTP Post バインディングを使いますが、これはこのカテゴリーに入ります。
  • つまり、SAMLメッセージの悪意のあるキャプチャと返信を防止するために、プライベート・ネットワーク上のすべてのユーザとワークステーションのセキュリティを信頼することになる。
  • このリスクを許容できる場合は、SAMLコードを変更することができる。
    セキュリティ上の理由から、このメソッドを推奨またはサポートすることはできない。

    WebSsoProfileImplでは、メソッド「doProcessResponse」
    を次のように変更する。
    MessageContext messageContext = decodeSamlMessage(
    httpServletRequest, httpServletResponse,
    getSamlBinding(SAMLConstants.SAML2_POST_BINDING_URI), true);
    宛先
    MessageContext messageContext = decodeSamlMessage(
    httpServletRequest, httpServletResponse,
    getSamlBinding(SAMLConstants.SAML2_POST_BINDING_URI), false);
Did this article resolve your issue ?

Legacy Knowledge Base