Securing SAML messages to Liferay portal.

13 views
Skip to first unread message

Juan Fernando Rivera

unread,
Oct 18, 2024, 3:29:15 PM10/18/24
to CAS Community
Hi, when trying to login a production Liferay portal using CAS as a SAML IdP provider, the portal brings this error message:

"ERROR [http-nio-0.0.0.0-9444-exec-3][WebSsoProfileImpl:216] Request was required to be secured but was not
org.opensaml.messaging.handler.MessageHandlerException: Request was required to be secured but was not"

This happens when CAS sends the petition to the "/acs" endpoint in the Liferay portal.

The Liferay configuration has a property called "SSL required" which description is "Requires SAML messages to be exchanged over SSL". Since it's a production environment it must be enabled.

In developing environment where is not enabled, the login flow works with no issues.

Is there something that must be configured in the CAS server to send the SAML requests as secured?

Thanks in advance.


Ray Bon

unread,
Oct 19, 2024, 12:46:46 AM10/19/24
to cas-...@apereo.org
Juan,

In your cas IdP metadata, are your 'SingleSignOnService' Locations https (they should be)?

If so, and this is happening after login to cas...

'Request' is sent by SP (Liferay) to cas, 'Response' is sent by cas to SP.
In the request the SP provides a return URL, 'AssertionConsumerServiceURL'; this must match one in the metadata.
Make sure Liferay configures all acs URLs to be https.

Ray
Reply all
Reply to author
Forward
0 new messages