<!--
  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html>
    <head></head>
    <body>
        <h1>Security Service Token Sample Guide</h1>
        <p>In this sample we will demonstrate the usage of wso2wsas-sts service and its applications.
            The demonstration of this sample also uses the default echo service as the service provider. </p>
        <h2>HOW TO BUILD AND RUN THE SAMPLE</h2>
        <ol>
            <li>Setup the sample by running the given Apache Ant build. $ ant</li>
            <li>Start WSO2 WSAS (If you haven't already started it)</li>
            <li>Log into WSO2 WSAS administration console.</li>
            <li>Select "wso2wsas-sts" service and setup security scenario #3 on it.
    Make sure wso2wsas.jks keystore (WSO2WSAS keystore) is used</li>
            <li>Select "echo" service and copy the http service address.
    Select "wso2wsas-sts" service and navigate to STS Configuration.
    Paste/type the http endpoint address of "echo" service in
      "Add new trusted service"->"Endpoint Address"
    Select the WSO2WSAS private key's certificate alias (wso2wsas)</li>
            <li>Select echo service and setup security scenario #12 on it.
    Makesure wso2wsas.jks keystore (WSO2WSAS keystore) is used.</li>
            <li>Upload sts-sample/conf/client.cert into the wso2wsas keystore using the
    WSO2WSAS admin console.</li>
            <li>Run client
     $ ./run-client.sh &lt;wso2wsas-sts-http-address&gt; &lt;echo-service-http-address&gt;
	OR
     run-client.bat  &lt;wso2wsas-sts-http-address&gt; &lt;echo-service-http-address&gt;</li>
        </ol>

    </body>

</html>