This documentation is for WSO2 Identity Server 5.0.0. View documentation for the latest release.
Running an STS Client - Identity Server 5.0.0 - WSO2 Documentation
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

The following sample demonstrates the steps required to run a Security Token Service (STS) client. The STS will provide the service of issuing a security token to authenticate a user for your client application, using WS-Trust protocols. 

Prerequisites

Running the STS client

  1. Create a folder in your local machine and navigate to it using your command line.
  2. 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/
  3. Build the client using the command mvn install.

  4. Once the client is built successfully, run the sts-client.sh file in Unix or sts-client.bat in 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.

Request and response messages to and from the STS

Request

Response

  • No labels