SAML SSO issue in localhost getting redirected to '/sso?continue=true'SAML SSO issue in localhost getting redirected to '/sso?continue=true'https://liferay.dev/c/message_boards/find_thread?p_l_id=119785333&threadId=1205787592024-03-28T20:24:40Z2024-03-28T20:24:40ZSAML SSO issue in localhost getting redirected to '/sso?continue=true'Bikee Mhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1205787582021-01-29T08:44:17Z2021-01-29T03:24:57Z<p>Hi everybody,</p>
<p>I am new to this platform. I got the Liferay DFX 7.3.10 set up for my
local machine. I have set up liferay as SAML identity provider. And
using my project running on rails as service provider. All the setup
went well as I am able to set up IDP and get the meta data and use it
in rails project. Both IDP and SP initiated SSO are working fine.
When i perform SP initiated sign out, all the steps are moving along
well with all proper request and response. But when i try
to initiate SSO again regardless of it being SP or IDP initiated;
rather the redirecting to the login page in liferay and another
redirect takes place which takes the page
to 'http://localhost:8080/c/portal/saml/sso?continue=true' with
'Unable to process SAML request.' error. After this if try again,
things looks normal and I get the login page again. </p>
<p>Is this related to 'JSESSIONID' cookie? As i was looking deeper,
when i delete this cookie and try to initiate SSO, same redirect
happens every time.</p>
<p>
<strong>Looking at logs, </strong></p>
<p>
<em>For IDP initiated </em></p>
<ul>
<li>[http-nio-8080-exec-8][HTTPPostDecoder:116] Request did not
contain either a SAMLRequest or SAMLResponse paramter.
Invalid request for SAML 2 HTTP POST binding.'</li></ul>
<p>
<em>For SP initited</em></p>
<ul>
<li>ERROR [http-nio-8080-exec-8][BasicParserPool:50] XML Parsing Error
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1;
Content is not allowed in prolog.</li>
<li>ERROR [http-nio-8080-exec-8][BaseSamlStrutsAction:59]
org.opensaml.messaging.decoder.MessageDecodingException:
Error unmarshalling message from input stream</li></ul>
<p>Any help would be highly appreciated.</p>Bikee M