This topic lists out the steps required to configure and run the password recovery sample web application with the WSO2 Identity Server. This is a sample implementation which uses SOAP services for identity management.
- WSO2 Identity Server 5.1.0 or a later version installed - This can be downloaded from the WSO2 Identity Server product page and installed by following the instructions in the Installing the Product topic.
- Apache Tomcat 6 - To deploy the sample web application.
- InfoRecoverySample ((located in
/is-samples/modules/samples/identity-mgt/info-recovery-samplefolder) - Follow these instructions to check out the samples folder.
Configuring the sample
- Do the following configuration changes to the
carbonServerUrlas the URL of the Identity Server. The following is an example.
Specify the credentials to access Identity Server with admin privileges for
accessPassword. The following is an example with the default WSO2 Identity Server credentials used.
Specify the trustStore absolute resource path for
trustStorePath. The following example specifies the path to wso2carbon.jks of the Identity Server.
If you are deploying the sample in Apache Tomcat, enable the SSL configuration in the
*[IS_HOME] should be replaced with the correct installation directory for identity server.
Configure the email confirmation links in the
<IS_HOME>/repository/conf/email/email-admin-config.xmlfile and relevant attributes in the
<IS_HOME>/repository/conf/security/identity-mgt.propertiesfile. Configurations that we need to do on these files are changed on our use case. See the following use cases and find the required configurations.
Recovering accounts using notification or secret question - Refer to the topic on password recovery with notification for a sample email template and the attributes needed in the
Self sign-up and account confirmation - Refer to the Self Sign Up and Account Confirmation for a sample email template and the attributes needed in the
- Creating Users using the Ask Password Option - Refer to the topic on Creating Users using the Ask Password Option for a sample email template and the attributes needed in the
Email conformation link should point to the identity management application. By default its pointing to the accountrecoveryendpoint application, if you have a different application please configure that URL.
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.
Build the sample using Apache Maven by navigating to the sample's location in the command line and running the following command.
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
targetsfolder is created that has the .war file.
- Copy the .war file that is generated to the
- Start Apache Tomcat.