This documentation is for WSO2 Identity Server 5.1.0 . View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

This topic lists out the steps required to configure and run the password recovery sample web application with the WSO2 Identity Server.


Configuring the sample

  1. Do the following configuration changes to the <SAMPLE_HOME>/src/main/webapp/WEB-INF/web.xml file.
    1. Specify the carbonServerUrl as the URL of the Identity Server. The following is an example.

    2. Specify the credentials to access Identity Server with admin privileges for accessUsername and accessPassword. The following is an example with the default WSO2 Identity Server credentials used.

    3. Specify the trustStore absolute resource path for trustStorePath. The following example specifies the path to wso2carbon.jks of the Identity Server.

  2. If you are deploying the sample in Apache Tomcat, enable the SSL configuration in the <TOMCAT_HOME>/conf/server.xml file.

    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="[IS_HOME]/repository/resources/security/wso2carbon.jks" keystorePass="wso2carbon" />

    * [IS_HOME] should be replaced with the correct installation directory for identity server.

  3. Configure the email confirmation links in the the <IS_HOME>/repository/conf/email/email-admin-config.xml file and the attributes in the <IS_HOME>/repository/conf/security/ file. The configurations you make in these files depend on what you want to achieve. The following configurations provide information on what needs to be configured based on your scenario.

To run the sample app you can build the sample using Apache Maven.

Building the sample using Apache Maven

Before building the sample, ensure that you have followed the instructions in the configuration steps above.

  1. Build the sample using Apache Maven by navigating to the sample's location in the command line and running the following command.

    mvn clean install

    When building the sample, the Java source code of the project is compiled into class files and packaged into .jar files. The dependencies listed in the project are located in bins so that Tomcat can find and load them. Once the build process is complete, a targets folder is created that has the .war file.

  2. Copy the .war file that is generated to the <TOMCAT_HOME>/webapps folder.
  3. Start Apache Tomcat.

  • No labels