Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 15

...

  1. Open a command line, and navigate to the <AS_HOME>/samples/SSOValveSample/bar-app directory.
  2. Run the relevant command to deploy the web app:
    • Using Maven

      1. Create a WAR file for the sample using the following command:

        Code Block
        mvn clean install
      2. Deploy the generated WAR file on WSO2 AS with the related logs on the console:

        Code Block
        mvn -Pdeploy
    • Using Ant

      Code Block
      ant
    This will deploy the bar-app web application in AS.
  3. In the same way, navigate to the <AS_HOME>/samples/SSOValveSample/foo-app directory and deploy the foo-app web application.
  4. Start the Application Server and log in to the management console. 
  5. You will find the bar-app and foo-app web applications listed in the Running Applications page.
  6. Start WSO2 Identity Server. 

  7. Now you can run the samples as explained below.

Running the sample

  1. Start WSO2 Application Server as explained here.
  2. In the Main -> Applications menu click List to open Go to the Running Applications page of AS.
  3. Click Go to URL for the bar-app web application. You will be directed to the following page, which allows you to log into the web application through WSO2 IS:
    SSO log in screen
  4. Sign in to access the application.
  5. Now, go back to the Running Applications page and click Go to URL for the foo-app web application. Note that you will be automatically logged in to the web application without any need to enter credentials.