Legacy Knowledge Base
Publicado Jul. 25, 0002

Setting Up DXP 7.0 as SP and WSO2 as IdP

Written By

Laura Li

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.

This article documents how to set up Liferay DXP 7.0 as SP and WSO2 as IdP.

Resolution

WSO2 configuration

1. Download wso2is-5.3.0.zip from the WSO2 site and extract the file to a dedicated directory.

2. Go to wso2is-5.3.0/bin and run command $sh wso2server.sh to start wso2 server if you are using Linux. You can double click wso2server.bat to start up the server in Windows.

3. When the server starts up, open the admin page via https://localhost:9443/carbon.

4. Use credential admin/admin to login.

5. Add service provider to the main configuration window.

a) Click Main > Identity > Service Providers > Add

b) Fill in Service Provider Name: liferaysamlsp

c) Click Register

d) In the list, configure the service provider

e) In Claim Configuration, add the claim URI as following:

     1_-_wso2-claim__1_.png

f) In Inbound Authentication Configuration, select SAML2 Web SSO configuration, click edit and fill in the form as following:

     2_-_wso2-websso__1_.png

6. Create a new user in wso2.

a) In Main > Identity > Users and Roles, click Add > Add New User

b) Fill in user name abc and password password and click Finish

c) In the user's list, click the new user's User Profile

d) Fill in first name abc, last name abc, email address abc@liferay.com, and IM abc.abc (We use IM to map screenName)

7. Download the metadata from wso2.

a) In Main > Identity Providers > Resident, click Inbound Authentication Configuration > SAML2 Web SSO Configuration

b) Click Download SAML Metadata

     3_-_wso2-metadata__1_.png

DXP SAML configuration

8. Make sure SAML plugin has been deployed on DXP portal.

9. In SAML Admin, configure DXP as the service provider.

a) In Control Panel > Configuration > SAML Admin > General

b) Add a service provider with Entity ID as liferaysamlsp

c) Generate a certificate

d) Click Save and the configuration is like following:

     4_-_dxp-general.png

f) In Service Provider tab, select Sign Authn Requests and Sign Metadata

     5_-_dxp-sp.png

g) In Identity Provider Connection tab, add localhost as Entity ID

h) Upload wso2's metadata and add Attribute Mapping

i) The configuration are as following:

     6_-_dxp-idpconnection_USE__1_.png

10. Open a browser and access http://localhost:8080

11. Click Sign in on the top right link

12. When the page is redirected to WSO2 login page, using abc/password credential to login.

Additional Information

WSO2 5.3 Documentation 

We need to use different host names for IDP and SP, otherwise SLO will not be working.

Did this article resolve your issue ?

Legacy Knowledge Base