README ================================ Intro --------- This describes the steps to configure and run the Password Recovery Sample web application with Identity Server. Prerequisites -------------- Build Identity Server 5.1.0 Tomcat 6 - To deploy the sample web app Configuration -------------- 1. configure the web.xml with the following. Specify the "carbonServerUrl" with the URL of the Identity Server. eg. https://localhost:9443 Specify the credentials to access Identity Server with admin privileges for "accessUsername" and "accessPassword". Specify the trustStore absolute resource path for "trustStorePath". eg. path to wso2carbon.jks of the Identity Server 2. If you are deploying the sample in tomcat enable the SSL configuration in {tomcat_home}/conf/server.xml (please change from correct value) 3. Configure the email confirmation links. To configure for password reset call back in Identity Server (in /repository/conf/email/email-admin-config.xml with email type as type="passwordReset") according to the sample as follows. This will be the confirmation handler path of the user's confirmation. Eg: ----------------------------------------------------------------------------------------------------------------------------------- https://localhost:8443/InfoRecoverySample/infoRecover/verify WSO2 Carbon - Password Reset Hi {first-name} We received a request to change the password on the {user-name} account associated with this e-mail address. If you made this request, please click the link below to securely change your password: https://localhost:8443/InfoRecoverySample/infoRecover/verify?username={user-name}&confirmation={confirmation-code} If clicking the link doesn't seem to work, you can copy and paste the link into your browser's address window. If you did not request to have your {user-name} password reset, simply disregard this email and no changes to your account will be made.
Best Regards, WSO2 Carbon Team http://www.wso2.com
----------------------------------------------------------------------------------------------------------------------------------- Please refer the Identity Server documentation for sample email template in https://docs.wso2.com/display/IS500/Recover+with+Notification To configure for account confirmation in Self sign up provide the configuration in email-admin-config.xml with email type as "accountConfirmation". Following is the call back handler for the sample. https://localhost:8443/InfoRecoverySample/confirmReg 4. Configure the identity-mgt.properties file attributes as follows in the Identity Server(in repository/conf/security/). Identity.Listener.Enable=true Notification.Sending.Enable=true Notification.Expire.Time=7200 Notification.Sending.Internally.Managed=true UserAccount.Recovery.Enable=true Captcha.Verification.Internally.Managed=true To run the sample app either you can directly copy the InfoRecoverySample.war in the target or build using maven. How to run by deploying the existing war file ---------------------------------------------- 1. Copy the InfoRecoverySample.war in the target folder to tomcat's webapp folder. 2. Start and stop the tomcat server 3. Configure tomcat as instructed above "Configuration" step. 4. Start tomcat. 5. Access the sample with URL - https://localhost:8443/InfoRecoverySample How to build using maven ------------------------ Before building make sure following dependancies are satisfied. org.wso2.carbon.identity.mgt.stub org.wso2.carbon.utils org.wso2.carbon.um.ws.api.stub org.wso2.carbon.identity.user.registration.stub org.apache.axis2.wso2 org.apache.ws.commons.axiom.wso2 Follow the instructions in the Configuration step above. Build the war with maven using mvn install Copy the war file to tomcat webapps