This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Running an STS Client
The following sample demonstrates the steps required to run a Security Token Service (STS) client. The STS provides the service of issuing a security token to authenticate a user for your client application, using WS-Trust protocols.
Prerequisites
The WS-Trust STS needs to be configured. You can do this by following the instructions found here.
Running the STS client
The code for the sample can be checked out from the GitHub repository. To do this, follow the instructions on the Downloading a Sample topic.
Once downloaded the identity server samples, go inside to
IS-SAMPLES/modules/samples/sts/sts-client directory to build the STS client.Build the client using
mvn install.Once the client is built successfully, run the
sts-client.shfile in Unix orsts-client.batin Windows. You can see that the SAML token issued from the STS is being printed by the client.