How to Perform SSO with Claims in WSO2 IS
Join the DZone community and get the full member experience.Join For Free
1. Here is a SSO sample that will be deployed in AS 5.2.1 and WSO2 IS will be used as IDP for SSO.
2. Get svn check out and go to \src\main\resources\travelocity.properties
uncomment below line
update number with ConsumerIndex after registry the issuer in IS
Avoid exposing slf4j from WSO2 AS using
file. There you can modify Carbon related entry as below.
<DelegatedEnvironment> <Name>Carbon</Name> <DelegatedPackages>*,!org.springframework.*,!org.slf4j.*</DelegatedPackages> </DelegatedEnvironment>
4. Now builder sample 'mvn clean install'
6. Start AS with offset 1
5. Upload travelocity.com.war file in to WSO2 AS
6. Now start IS with offset 0 and Register 'New Service Provide' in 'SAML 2.0 based Single Sign-On'
7. With Enable Attribute Profile (Claim) and click 'update'
8. Then you can find Consumer Index if you did not pick 'include Attributes in the Response Always'
9. Now go to http://localhost:8080/travelocity.com/
10. Now you login.
There you can see the user claim that we checked In.
adding below line in ‘<wso2is-home>\repository\conf\log4j.properties’
Will show the request and responds in wso2 IS console. you can try decide those from decoding from here online site.
You can change user profile values from ‘Home > Configure > Users and Roles > Users > Update Profile’
Published at DZone with permission of Madhuka Udantha, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.