Download the samples
To be able to deploy a sample of Identity Server, you need to download it onto your machine first.
Follow the instructions below to download a sample from GitHub.
- Create a folder in your local machine and navigate to it using your command line.
Run the following commands.
git remote add -f origin https://github.com/wso2/product-is.git
git config core.sparseCheckout true
Navigate into the .
git/info/ directory and list out the folders/files you want to check out using the
echo command below.
echo "modules/samples/" >> sparse-checkout
Navigate out of
.git/info directory and checkout the
v5.4.0 tag to update the empty repository with the remote one.
git checkout -b v5.4.0 v5.4.0
Access the samples by navigating to the
Deploy the sample web app
Deploy this sample web app on a web container.
- Use the Apache Tomcat server to do this. If you have not downloaded Apache Tomcat already, download it from here.
- Copy the .war file into the
webapps folder. For example,
- Start the Tomcat server.
To check the sample application, navigate to
http://<TOMCAT_HOST>:<TOMCAT_PORT>/travelocity.com/index.jsp on your browser.
Note: It is recommended that you use a hostname that is not
localhost to avoid browser errors. Modify the
/etc/hosts entry in your machine to reflect this. Note that
localhost is used throughout thisdocumentation as an example, but you must modify this when configuring these authenticators or connectors with this sample application.