This documentation is for WSO2 Identity Server 5.1.0. View documentation for the latest release.
Page Comparison - Configuring Single Sign-On (v.38 vs v.39) - Identity Server 5.1.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. You can check out the repository of the SSO sample from GitHub. Follow the instructions here to checkout the folder. 

  2. Completely replace the contents of the pom.xml file that is in the <is-samples>/modules/samples/sso directory with the following code snippet.

    Code Block
    languagexml
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
       <groupId>org.wso2.identity</groupId>
       <version>5.1.0</version>
       <modelVersion>4.0.0</modelVersion>
       <artifactId>wso2is-identity-samples-sso</artifactId>
       <packaging>pom</packaging>
       <name>Identity Server : SSO Samples</name>
       <modules>
          <module>sso-agent-sample</module>
       </modules>
    </project>
  3. In your command lineIf you haven't navigated to the sso directory via the terminal in step 2, navigate to the sso directory and build the sample using the following command. You must have Apache Maven installed to do this (see Installation Prerequisites for the appropriate version to use).

    Code Block
    cd <is-samples>/modules/samples/sso
    mvn clean install
  4. After successfully building the sample, a .war file named travelocity.com can be found inside the <is-samples>/modules/samples/sso/sso-agent-sample/target directory. Deploy this sample web app on a web container. To do this, use the Apache Tomcat server.

    Note

    Since this sample is written based on Servlet 3.0 it needs to be deployed on Tomcat 7.x.

    Use the following steps to deploy the web app in the web container:

    1. Stop the Apache Tomcat server if it is already running.
    2. Copy the travelocity.com.war file to the <TOMCAT_HOME>/webapps folder.
    3. Start the Apache Tomcat server.

...