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
- Start the server. When signing in, DO NOT flag the Remember Me
- Navigate to the Admin > Control Panel > SAML Admin
- Navigate to the General tab, enter the following:
- SAML Role (Required): Identity Provider
- Entity ID (Required): samlidp
- Click save
- In the certificate and Private Key section, enter the following:
- Common Name (Required): Liferay Support
- Organization (Required): Liferay
- Organization Unit: (leave blank)
- Locality: (leave blank)
- State: (leave blank)
- Country: USA
- Validity (days) (Required): 356
- Key Algorithm: RSA
- Key Length (Bits): 2048
- Key Password (Required): samlidp
- Click Save
- Check the” Enabled” check box and click Save
- In the Control Panel >SAML Admin, click the Identity Provider
- Make sure the” Sign Metadata” and ”Require Authn Required Signature” is checked
Configure the second Liferay bundle as SP
- Change the port number to 7080 for this SP bundle
- Start the server. Remember when signing in,DONOT flag the Remember Me checkbox
- Navigate to the Control Panel > SAML Admin
- Under the General tab, enter the following:
- SAML Role: Service Provider
- Entity ID (Required): samlsp
- Click Save.
- In the Certificate and Private Key section, enter the following:
- Common Name: Liferay Support
- Organization: Liferay
- Organization Unit: {leave blank}
- Locality: {leave blank}
- State: {leave blank}
- Country: USA
- Validity (days)(Required): 356
- Key Algorithm: RSA
- Key Length (Bits): 2048
- Key Password (Required): samlsp
- Click save
- Click the Identity Provider Connection Enter the following:
- Name (Required): samlidp
- Entity ID: samlidp
- Check the “Enabled” option
- Metadata URL:http://www.bbb.com:8080/c/portal/saml/metadata
- Select "Email Address" from the Name Identifier Format drop-down menu
- Click save
- Click the General
- Check the "Enabled", then Click Save
Go back to the first Liferay bundle configured as the IdP
- Navigate to the Control Panel > SAML Admin
- Click the Service Provider Connections
- Click the Add Service Provider
- Enter the following:
- Name: samlsp
- Entity ID: samlsp
- Check the "Enabled"
- Assertion Lifetime: 1800
- Metadata URL: http: //www.sp.com:7080/c/portal/saml/metadata
- Name Identifier Format: Email Address
- Name Identifier Attribute Name: emailAddress
- Click Save
To test IdP initiated SLO
- Open a new browser tab with the IdP (http://www.bbb.com:8080/), login with thetest testuser
- Open a new browser tab with the SP (http://www.sp.com:7080), login with thetest testuser
- Click Sign Out in the IdP to trigger the SLO, the IdP can be logged out successfully
- 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