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

InvalidNameIDPolicyのエラー

written-by

Kanchan Bisht

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をSP、ADFSをIdpとして設定する際、以下のエラーが発生します。
    • At Liferay end: ERROR [ajp-nio-0.0.0.0-8009-exec-10][BaseSamlStrutsAction:59] urn:oasis:names:tc:SAML:2.0:status:InvalidNameIDPolicy
    • At ADFS end: Microsoft.IdentityServer.Protocols.Saml.InvalidNameIdPolicyException: MSIS7070: The SAML request contained a NameIDPolicy that was not satisfied by the issued token. Requested NameIDPolicy: AllowCreate: True Format: urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress SPNameQualifier: Actual NameID properties: null

Environment

  • Liferay DXP 7.2

解決策

  • ADFSでクレームルール(CR、TR)が不足している場合や、クレームルールの設定が間違っている場合、このようなエラーが発生します。

  • TRルールでName ID属性が設定されていない、この場合、以下のようになります。 TR_Rule.png

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base