- 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.
- The WS-Trust STS needs to be configured. You can do this by following the instructions found here.
- STSSample - This can be found in the SVN repository.
Running the STS client
The code for the sample client can be checked out from here. For more information, see Downloading a Sample topic.
https://github.com/wso2/product-is/tree/masterCreate a folder in your local machine and navigate to it using your command line. Code Block
Download the Java sample by entering the following.The location of this folder will be referred to as
<SAMPLE_HOME>from this point onwards.
svn co http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/is/5.0.0/modules/samples/sts/sts-client
Build the client using using the command
Once the client is built successfully, run the
sts-client.shfile in Unix or
sts-client.batin Windows. You can see that the SAML token issued from the STS is being printed by the client.
The "connection refuse" error occurs in a situation where the STS client attempts to send the received SAML token to a service that is not running in this case.