SAML Authentication Issue: Message context was not authenticated
written-by
Sivakumar Perumal
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
Environment
- Liferay DXP 7.2 as Service Provider
Resolution
-
Liferay allows authentication only when the response from IDP is signed because the unsigned response from IDP could lead to security issue.
-
For example, any MiM (Middle Men) could easily tamper the response from the IdP and send it to the SP (Liferay).
-
I.e. if the response is not signed, the SP will not be able to recognize whether the response is coming from the respective configured IdP or from somewhere else, so the IdP must be configured to signed the responses (even if individual assertions are).
- Both
Response's and LogoutResponse's should be signed.
did-this-article-resolve-your-issue