Fórum

SAML2 Plugin SSL Config issue

thumbnail
Peter J Shields, modificado 9 Anos atrás.

SAML2 Plugin SSL Config issue

Junior Member Postagens: 26 Data de Entrada: 30/06/09 Postagens Recentes
Hi,
I'm working on a project where we use an F5 device to offload SSL from an Apache HTTP that proxies to Liferay/Tomcat 6.2 EE. The F5 forces all communication between the client and the F5 to be SSL. All down-line communication to Apache and Liferay are http.

To get past a mixed content issue, where static files belonging to the theme and OOB portlets were being requested using http, but the page is forced SSL, I set web.server.protocol=https in portal-ext.properties

Unfortunately, we're also using a SAML 2.0 based IdP to provide SSO. With web.server.protocol=https set, the AuthN request is constructed by Liferay assuming communication to Liferay is https. In my case it is http. When the AuthN request is returned by the IdP, SAML2 complains that the URL requested does not match the URL in the assertion. The mismatch is https vs http.

If I set web.server.protocol=http it fixes the SSO URL mismatch issue, but then I'm back to the browser complaining about mixed content. Is there a setting for the SAML2 plugin that would allow the SAML AuthN request metadata to use http, while still using the web.server.protocol property set to https?
thumbnail
Olaf Kock, modificado 9 Anos atrás.

RE: SAML2 Plugin SSL Config issue

Liferay Legend Postagens: 6400 Data de Entrada: 23/09/08 Postagens Recentes
If you don't even forward non-https requests to Liferay (e.g. make sure that every single request that reaches Liferay is encrypted) you can use the trick I described with the 8081 connector in my blog post. This way tomcat assumes that content is secure and would generate all other URLs on the page also to https.

This does not solve the problem in the way you asked, but might be helping with a workaround until you get a proper answer.
thumbnail
Manish Jha, modificado 7 Anos atrás.

RE: SAML2 Plugin SSL Config issue

Junior Member Postagens: 50 Data de Entrada: 07/02/13 Postagens Recentes
Let me know if resolved the issue.
I am facing the same issue.