This topic lists out the steps required to configure and execute testing of Identity Server's Passive STS.
- WSO2 Identity Server 5.0.0 with Service Pack 1 installed - This can be downloaded from the WSO2 Identity Server product page and installed by following the instructions in the Installing the Product topic.
- Apache Tomcat 6 - To deploy the sample web application.
- PassiveSTSSample - This can be found in the SVN repository.
Configuring the sample
- Create a folder in your local machine and navigate to it using your command line.
Download the Java sample by entering the following.The location of this folder will be referred to as
<SAMPLE_HOME>from this point onwards.
Do the following configuration changes to the
idpUrlas the URL of Identity Server's Passive STS. The following is an example.
replyURLas the URL of the web app. The following specifies
PassiveSTSSampleAppas the web app.
realm. This should be a unique identifier for the web app as seen in the example below.
Configuring Identity Server
- Log in to the Identity Server and go to Service Providers>Add in the Main menu in the management console.
- Enter a unique name for the service provider and click Register. The following form appears.
- Expand the Inbound Authentication Configuration> WS-Federation (Passive) Configuration section and provide the following values. See Configuring WS-Federation (Passive) or OpenID for more information.
- Passive STS Realm - Provide the same realm name given to the web app
- Passive STS WReply URL - Provide the URL of the web app
- Click update.
Deploying the sample on Apache Tomcat
- Download Apache Tomcat and extract the
.zipfile into your directory, if you have not already done so.
Build the sample's
.warfile by navigating inside the
<SAMPLE_HOME>directory where the
pom.xmlfile is located and running the following command
- Copy the PassiveSTSSampleApp.war file located in the
<SAMPLE_HOME>/targetdirectory and paste a copy of it in the
- Navigate inside the [
Tomcat_Home/bin]directory in the command line and run
sh catalina.sh runcommand to start the server.
- On your browser, access the following link: http://localhost:8080/PassiveSTSSampleApp/index.jsp
- Enter user credentials and you will be redirected to the IS Passive STS Service.