Legacy Knowledge Base
Published Jun. 30, 2025

SAML IDP is unable to initiate SLO

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • SAML Identity Provider is unable to initiate Single Log Out

    Notes

    1. Set the different virtual hosts as below as an example

    127.0.0.1www.bbb.com (For IDP)

    127.0.0.1www.sp.com (For SP)

    2. Using thetest testuser in this test. Make sure the user share the same password in IDP and SP

    Reproduction Steps

    Configure the first Liferay bundle as IDP

    1. Start the server. When signing in, DO NOT flag the Remember Me
    2. Navigate to the Admin > Control Panel > SAML Admin
    3. Navigate to the General tab, enter the following:
      1. SAML Role (Required): Identity Provider
      2. Entity ID (Required): samlidp
    4. Click save
    5. In the certificate and Private Key section, enter the following:
      1. Common Name (Required): Liferay Support
      2. Organization (Required): Liferay
      3. Organization Unit: (leave blank)
      4. Locality: (leave blank)
      5. State: (leave blank)
      6. Country: USA
      7. Validity (days) (Required): 356
      8. Key Algorithm: RSA
      9. Key Length (Bits): 2048
      10. Key Password (Required): samlidp
    6. Click Save
    7. Check the” Enabled” check box and click Save
    8. In the Control Panel >SAML Admin, click the Identity Provider 
    9. Make sure the” Sign Metadata” and ”Require Authn Required Signature” is checked

    Configure the second Liferay bundle as SP

    1. Change the port number to 7080 for this SP bundle
    2. Start the server. Remember when signing in,DONOT flag the Remember Me checkbox
    3. Navigate to the Control Panel > SAML Admin
    4. Under the General tab, enter the following:
      1. SAML Role: Service Provider
      2. Entity ID (Required): samlsp
    5. Click Save.
    6. In the Certificate and Private Key section, enter the following:
      1. Common Name: Liferay Support
      2. Organization: Liferay
      3. Organization Unit: {leave blank}
      4. Locality: {leave blank}
      5. State: {leave blank}
      6. Country: USA
      7. Validity (days)(Required): 356
      8. Key Algorithm: RSA
      9. Key Length (Bits): 2048
      10. Key Password (Required): samlsp
    7. Click save
    8. Click the Identity Provider Connection Enter the following:
      1. Name (Required): samlidp
      2. Entity ID: samlidp
      3. Check the “Enabled” option
      4. Metadata URL:http://www.bbb.com:8080/c/portal/saml/metadata
      5. Select "Email Address" from the Name Identifier Format drop-down menu
      6. Click save
    9. Click the General 
    10. Check the "Enabled", then Click Save

    Go back to the first Liferay bundle configured as the IdP

    1. Navigate to the Control Panel > SAML Admin
    2. Click the Service Provider Connections
    3. Click the Add Service Provider 
    4. Enter the following:
      1. Name: samlsp
      2. Entity ID: samlsp
      3. Check the "Enabled" 
      4. Assertion Lifetime: 1800
      5. Metadata URL: http: //www.sp.com:7080/c/portal/saml/metadata
      6. Name Identifier Format: Email Address
      7. Name Identifier Attribute Name: emailAddress
    5. Click Save

    To test IdP initiated SLO

    1. Open a new browser tab with the IdP (http://www.bbb.com:8080/), login with thetest testuser
    2. Open a new browser tab with the SP (http://www.sp.com:7080), login with thetest testuser
    3. Click Sign Out in the IdP to trigger the SLO, the IdP can be logged out successfully
    4. Navigate to the SP's browser window and refresh the page

    Expected Behavior: The SP is logged out as well

    Actual Behavior: The SP is not logged out

Environment

  • Liferay DXP 7.3

Resolution

  • The observed behavior is a known issue LPS-128578 and was fixed in the latest release of the fix pack according to the Liferay version. Please create a ticket if you need a hotfix.
  • Installing Patches

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base