Legacy Knowledge Base
公開されました Jul. 2, 2025

仮想インスタンスの URL を切り替えた後、Liferay as SAML SP が失敗する

Written By

Alexandra Rujzam

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.

問題

ポータル インスタンスの仮想ホストが変更されて以来、SAML 構成が機能していません。
Caused by: org.opensaml.ws.security.SecurityPolicyException: Request was required to be secured but was not
at org.opensaml.ws.security.provider.HTTPRule.evaluateSecured(HTTPRule.java:126)
at org.opensaml.ws.security.provider.HTTPRule.doEvaluate(HTTPRule.java:81)
at org.opensaml.ws.security.provider.HTTPRule.evaluate(HTTPRule.java:66)
at org.opensaml.ws.security.provider.BasicSecurityPolicy.evaluate(BasicSecurityPolicy.java:51)
at org.opensaml.ws.message.decoder.BaseMessageDecoder.processSecurityPolicy(BaseMessageDecoder.java:132)
at org.opensaml.ws.message.decoder.BaseMessageDecoder.decode(BaseMessageDecoder.java:83)
at org.opensaml.saml2.binding.decoding.BaseSAML2MessageDecoder.decode(BaseSAML2MessageDecoder.java:70

環境

  • リバース プロキシを使用した Liferay DXP 7.0

解決

Request was required to be secured but was not は通常、SAML とサーバー側で異なるプロトコルが使用されている場合に報告されます。

新しい仮想インスタンスを設定する際に、サービスプロバイダタブの SSLを必須にする チェックボックスを無効にするか、リバース プロキシで RequestHeader set X-Forwarded-Proto "https" を選択することで、SSL必須がチェックされ、以前のように動作するようになります。

 

Did this article resolve your issue ?

Legacy Knowledge Base