<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>SAML Logout is not working in clustered environment</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110953288" />
  <subtitle>SAML Logout is not working in clustered environment</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110953288</id>
  <updated>2026-04-05T01:14:12Z</updated>
  <dc:date>2026-04-05T01:14:12Z</dc:date>
  <entry>
    <title>RE: SAML Logout is not working in clustered environment</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110961260" />
    <author>
      <name>Shahbaz Khan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110961260</id>
    <updated>2018-09-17T07:30:36Z</updated>
    <published>2018-09-17T07:30:36Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Raja Seth:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;Hi Shahbaz,&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt;What I guess, cluster configuration seems to be incorrect.
        Check JSession id on each request, is it the same or its changes
        on each request. If it is so then check logs on both the servers.&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
      &lt;p&gt;Raja Seth&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hi Raja,&lt;/p&gt;
&lt;p&gt;This is not clustering problem. I am facing same problem in Non
  Clustered environment also.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Shahbaz Khan</dc:creator>
    <dc:date>2018-09-17T07:30:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: SAML Logout is not working in clustered environment</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110960273" />
    <author>
      <name>Raja Seth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110960273</id>
    <updated>2018-09-17T06:51:17Z</updated>
    <published>2018-09-17T06:51:17Z</published>
    <summary type="html">&lt;p&gt;Hi Shahbaz,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;What I guess, cluster configuration seems to be incorrect. Check
  JSession id on each request, is it the same or its changes on each
  request. If it is so then check logs on both the servers.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Raja Seth&lt;/p&gt;</summary>
    <dc:creator>Raja Seth</dc:creator>
    <dc:date>2018-09-17T06:51:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: SAML Logout is not working in clustered environment</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110959295" />
    <author>
      <name>Shahbaz Khan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110959295</id>
    <updated>2018-09-17T06:11:44Z</updated>
    <published>2018-09-17T06:11:44Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;I don't know that your evaluation is correct...&lt;/p&gt;
      &lt;p&gt;If you log out, the IdP logs you out.  When you say &amp;quot;once
        we return to Portal and do a logout&amp;quot;, since it is the IdP
        you are already logged out.  You don't log out of the SP and IdP
        individually, it is one &amp;quot;session&amp;quot; the login covers
        both and the logout covers both also.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Yes i am doing logout at IDP end and it is working fine, I am
  successfully logged out from IDP.  But i am not getting logged out
  from Service Provider. When liferay check SAML response i am getting
  above error which i mentioned.&lt;/p&gt;
&lt;p&gt;I am not getting logged out automatically from service provider
  when logged out from idp.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Shahbaz Khan</dc:creator>
    <dc:date>2018-09-17T06:11:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: SAML Logout is not working in clustered environment</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110954864" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110954864</id>
    <updated>2018-09-14T16:11:42Z</updated>
    <published>2018-09-14T16:11:42Z</published>
    <summary type="html">&lt;p&gt;I don't know that your evaluation is correct...&lt;/p&gt;
&lt;p&gt;If you log out, the IdP logs you out.  When you say &amp;quot;once we
  return to Portal and do a logout&amp;quot;, since it is the IdP you are
  already logged out.  You don't log out of the SP and IdP individually,
  it is one &amp;quot;session&amp;quot; the login covers both and the logout
  covers both also.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2018-09-14T16:11:42Z</dc:date>
  </entry>
  <entry>
    <title>SAML Logout is not working in clustered environment</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110953287" />
    <author>
      <name>Shahbaz Khan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110953287</id>
    <updated>2018-09-14T13:41:28Z</updated>
    <published>2018-09-14T13:41:28Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We are having some strange behaviour when configured with SAML&lt;/p&gt;
&lt;p&gt;Problem: &lt;/p&gt;
&lt;p&gt;Liferay is setup as IDP, we have one service provider.&lt;br /&gt; Once
  logged in from Liferay when we visit  service provider's page then
  everything works, we dont need to login again there.&lt;br /&gt; Once we
  return to Portal and then do a logout we are getting error&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;
  &lt;strong&gt;com.liferay.saml.runtime.SamlException:
    org.opensaml.ws.security.SecurityPolicyException: Inbound message
    issuer was not authenticated.&lt;br /&gt;         at
    com.liferay.saml.opensaml.integration.internal.profile.ExceptionHandlerUtil.handleException(ExceptionHandlerUtil.java:34)&lt;br /&gt;
            at
    com.liferay.saml.opensaml.integration.internal.profile.SingleLogoutProfileImpl.processSingleLogout(SingleLogoutProfileImpl.java:252)&lt;br /&gt;
            at
    com.liferay.saml.web.internal.portlet.action.SingleLogoutAction.doExecute(SingleLogoutAction.java:62)&lt;br /&gt;
            at
    com.liferay.saml.web.internal.portlet.action.BaseSamlStrutsAction.execute(BaseSamlStrutsAction.java:51)&lt;br /&gt;
            at
    com.liferay.portal.kernel.struts.BaseStrutsAction.execute(BaseStrutsAction.java:39)&lt;br /&gt;
            at
    com.liferay.portal.struts.ActionAdapter.execute(ActionAdapter.java:50)&lt;br /&gt;
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Suspect: I guess signature is being passsed null.&lt;/p&gt;
&lt;p&gt;Now once when we login back again into portal, then we are getting error&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;[SecurityPortletContainerWrapper:363] User 0 is not allowed to
    access URL https://unnayan.indianoil.co.in/web/guest/employee-login
    and portlet com_liferay_login_web_portlet_LoginPortlet&lt;/strong&gt;
  &lt;br /&gt;
  &lt;br /&gt; Then we have to clear cookies again so user can login.&lt;/p&gt;</summary>
    <dc:creator>Shahbaz Khan</dc:creator>
    <dc:date>2018-09-14T13:41:28Z</dc:date>
  </entry>
</feed>
